TrafficClientFactory

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object TrafficClientFactory

Responsible for creating the default Traffic implementation.

Functions

Link copied to clipboard
fun create(context: Context, apiKey: String, ndsStore: NdsStore, locationProvider: LocationProvider, locale: Locale): Traffic

Creates a Traffic implementation for the default TomTom traffic provider with the default configuration.

Link copied to clipboard
fun createHybridMode(context: Context, apiKey: String, dataStore: HybridNavigationDataStore, locationProvider: LocationProvider, locale: Locale): Traffic

Creates a Traffic implementation for the default TomTom traffic provider with the default configuration. This method should be used when using the "hybrid" configuration (online and onboard map).

Link copied to clipboard
fun createOfflineMode(context: Context, apiKey: String, ndsStore: NdsStore, locationProvider: LocationProvider, locale: Locale): Traffic

Creates a Traffic implementation for the default TomTom traffic provider with the default configuration. This method should be used when using the "offline" configuration (NDS.classic onboard map only).

Link copied to clipboard
fun createOnlineMode(context: Context, apiKey: String, dataStore: NavigationTileStore, locationProvider: LocationProvider, locale: Locale): Traffic

Creates a Traffic implementation for the default TomTom traffic provider with the default configuration. This method should be used when using the "online" configuration (NDS.live online map only).

Link copied to clipboard
fun createWithTpegProvider(context: Context, trafficTpegConfiguration: TrafficTpegConfiguration, ndsStore: NdsStore, locationProvider: LocationProvider, locale: Locale): Traffic

Creates a Traffic implementation for the TomTom TPEG traffic provider.