sdk-traffic / com.tomtom.online.sdk.traffic / OnlineTrafficApi / create

create

@DeprecatedSince("2020.06") open static fun create(@NonNull context: Context): TrafficApi!
Deprecated: Deprecated in Java

Creates a new TrafficApi object which will use the provided Traffic API Key. It uses default values for the Traffic API service endpoint and API version.

Parameters

context - Context: Android's context.

Return
TrafficApi!: Newly created TrafficApi object for further processing.

open static fun create(@NonNull context: Context, apiKey: String!): TrafficApi!

Creates a new TrafficApi object which will use the provided Traffic API Key. It uses default values for the Traffic API service endpoint and API version.

Parameters

context - Context: Android's context.

Return
TrafficApi!: Newly created TrafficApi object for further processing.