Container | iOS SDK | Urbi Documentation
iOS SDK

Container

Central object for accessing iOS Mobile SDK features.

public convenience init(
	apiKeyOptions: ApiKeyOptions = .default,
	logOptions: LogOptions = .default,
	httpClientForRequest: IHTTPClient? = nil,
	httpOptions: HTTPOptions = .default,
	positioningServices: IPositioningServicesFactory = PlatformPositioningServicesFactory(),
	batteryOptions: BatteryOptions = .default,
	personalDataCollectionOptions: PersonalDataCollectionOptions = .default,
	localizationOptions: LocalizationOptions = .default,
	audioOptions: AudioOptions = .default,
	vendorConfigFile: File? = nil
)

Container builder.

Parameters
apiKeyOptions
ApiKeyOptions

Key settings for accessing 2GIS services.

logOptions
LogOptions

Journaling settings.

httpClientForRequest
IHTTPClient?

Network client for sending HTTP requests.

httpOptions
HTTPOptions

HTTP client settings (such as caching).

positioningServices
IPositioningServicesFactory

Geo-positioning services.

batteryOptions
personalDataCollectionOptions
PersonalDataCollectionOptions

Data collection service settings.

localizationOptions
LocalizationOptions

Application localization settings.

audioOptions
AudioOptions

Sound settings.

vendorConfigFile
File?

Overrides settings for working in an offline environment.

Methods
Properties

Root opaque SDK object container. Used as an argument to the SDK API.

UIView marker factory for map.

Current ILocationService implementation used within the SDK and working via ILocationProvider.

Sound settings.

HTTP client settings.

Battery tracking settings.

Application localization settings.