sdk-common / com.tomtom.online.sdk.location / LocationSourceFactory

LocationSourceFactory

@DeprecatedSince(2019, 7) open class LocationSourceFactory
Deprecated: Deprecated in Java

Factory for the LocationSources to automatically choose between Android native location management and Google Location Services. Factory is now deprecated, create LocationSources by instantiating FusedLocationSource or BasicLocationSource directly.

Constructors

<init>

LocationSourceFactory()

Factory for the LocationSources to automatically choose between Android native location management and Google Location Services. Factory is now deprecated, create LocationSources by instantiating FusedLocationSource or BasicLocationSource directly.

Functions

createDefaultLocationSource

open fun createDefaultLocationSource(context: Context!, locationUpdateListener: LocationUpdateListener!): LocationSource
open fun createDefaultLocationSource(context: Context!, locationUpdateListener: LocationUpdateListener!, locationRequest: LocationRequest!): LocationSource

Creates default location source.