sdk-common / com.tomtom.online.sdk.common.config.provider / PriorityConfigProvider

PriorityConfigProvider

@DeprecatedSince(2020, 6) open class PriorityConfigProvider : ConfigProvider
Deprecated: Deprecated in Java

Default implementation for ConfigProvider.

Constructors

<init>

PriorityConfigProvider(vararg configLoaders: ConfigLoader!)

Create config provider with specified config loaders. Config loaders are stored in reverse priority, highest priority last.

Inherited Properties

CONFIG_KEYS

static val CONFIG_KEYS: ImmutableList<String!>!

GEOFENCING_API_KEY

static val GEOFENCING_API_KEY: String

ONLINE_MAPS_KEY

static val ONLINE_MAPS_KEY: String

ONLINE_ROUTING_KEY

static val ONLINE_ROUTING_KEY: String

ONLINE_SEARCH_KEY

static val ONLINE_SEARCH_KEY: String

ONLINE_TRAFFIC_KEY

static val ONLINE_TRAFFIC_KEY: String

Functions

createProviderDynamicFirst

open static fun createProviderDynamicFirst(context: Context, config: MutableMap<String!, String!>): PriorityConfigProvider!

Create config provider where keys are obtained from the provided map. If they are not found there, AndroidManifest is used as a backup storage.

createProviderManifestFirst

open static fun createProviderManifestFirst(context: Context!): PriorityConfigProvider!

Create a config provider that uses a manifest to load API Keys.

provideConfiguration

open fun provideConfiguration(): Configuration