DGis
Entry point to the 2GIS SDK. At the start of work, you must call initialize.
Methods
@JvmStatic
@JvmOverloads
fun initialize(
appContext: Context,
httpOptions: HttpOptions = HttpOptions(),
logOptions: LogOptions = LogOptions(LogLevel.WARNING),
vendorConfig: VendorConfig = VendorConfig(),
keySource: KeySource = KeySource(KeyFromAsset("dgissdk.key")),
dataCollectConsent: PersonalDataCollectionConsent = PersonalDataCollectionConsent.GRANTED
): Context
You must call this method before working with the SDK.
Parameters
appContext
Context
Android application context.
httpOptions
logOptions
vendorConfig
keySource
dataCollectConsent
PersonalDataCollectionConsent
Consent to data collection and data processing.
Returns
Context
sdkContext required for SDK services to work.
@JvmStatic
fun context(): Context
Returns