aerogear-xamarin-sdk
AeroGear Xamarin SDK
AeroGear.Mobile.Core.Options.OptionsBuilder Class Reference

Builder class to create a new instance of the T:AeroGear.Mobile.Core.Options class. More...

Public Member Functions

OptionsBuilder Logger (ILogger logger)
 Sets specific logger to be used with the core. More...
 
OptionsBuilder ConfigFileName (string configFileName)
 Sets name of the JSON configuration file that will be read from resources. More...
 
OptionsBuilder ConfigJSON (string configJson)
 Sets configuration directly from string. More...
 
OptionsBuilder HttpServiceModule (IHttpServiceModule httpServiceModule)
 Set the specific implementation of HTTP to be used with the core. More...
 
OptionsBuilder HttpAllowAutoRedirect (bool allowAutoRedirect)
 Set whether the default HTTP Client should allow redirects. This does not apply when specifying a custom HTTP Client using HttpServiceModule(IHttpServiceModule). More...
 
Options Build ()
 Creates options to be used to initialize the core. More...
 

Detailed Description

Builder class to create a new instance of the T:AeroGear.Mobile.Core.Options class.

Member Function Documentation

◆ Build()

Options AeroGear.Mobile.Core.Options.OptionsBuilder.Build ( )

Creates options to be used to initialize the core.

Returns
initialization options

◆ ConfigFileName()

OptionsBuilder AeroGear.Mobile.Core.Options.OptionsBuilder.ConfigFileName ( string  configFileName)

Sets name of the JSON configuration file that will be read from resources.

Parameters
configFileNamefile name
Returns
itself

◆ ConfigJSON()

OptionsBuilder AeroGear.Mobile.Core.Options.OptionsBuilder.ConfigJSON ( string  configJson)

Sets configuration directly from string.

Parameters
configJsonJSON string with configuration
Returns
itself

◆ HttpAllowAutoRedirect()

OptionsBuilder AeroGear.Mobile.Core.Options.OptionsBuilder.HttpAllowAutoRedirect ( bool  allowAutoRedirect)

Set whether the default HTTP Client should allow redirects. This does not apply when specifying a custom HTTP Client using HttpServiceModule(IHttpServiceModule).

Returns
itself
Parameters
allowAutoRedirectIf set to true allow auto redirect.

◆ HttpServiceModule()

OptionsBuilder AeroGear.Mobile.Core.Options.OptionsBuilder.HttpServiceModule ( IHttpServiceModule  httpServiceModule)

Set the specific implementation of HTTP to be used with the core.

Parameters
httpServiceModulehttp service module
Returns
itself

◆ Logger()

OptionsBuilder AeroGear.Mobile.Core.Options.OptionsBuilder.Logger ( ILogger  logger)

Sets specific logger to be used with the core.

Parameters
loggerlogger
Returns
itself

The documentation for this class was generated from the following file: