TrafficClientFactory

Responsible for creating the default Traffic implementation.

Important: This is a Public Preview API. It may be changed or removed at any time.

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 createWithTpegProvider(context: Context, trafficTpegConfiguration: TrafficTpegConfiguration, ndsStore: NdsStore, locationProvider: LocationProvider, locale: Locale): Traffic

Creates a Traffic implementation for the TomTom TPEG traffic provider.