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

BasicLocationSource

open class BasicLocationSource : AbstractLocationSource

The basic implementation of the LocationSource which relies on the default Android mechanism to obtain location ( via LocationManager ).

Constructors

<init>

BasicLocationSource(context: Context!)

Default constructor to create fused location source implementation.

Functions

activate

open fun activate(): Unit

deactivate

open fun deactivate(): Unit

getLastKnownLocation

open fun getLastKnownLocation(): Location?

onLocationChanged

open fun onLocationChanged(location: Location!): Unit

Inherited Functions

addLocationUpdateListener

open fun addLocationUpdateListener(locationUpdateListener: LocationUpdateListener!): Unit

getAllLocationUpdateListeners

open fun getAllLocationUpdateListeners(): MutableList<LocationUpdateListener!>!

onProviderDisabled

open fun onProviderDisabled(provider: String!): Unit

onProviderEnabled

open fun onProviderEnabled(provider: String!): Unit

onStatusChanged

open fun onStatusChanged(provider: String!, status: Int, extras: Bundle!): Unit

removeAllLocationUpdateListeners

open fun removeAllLocationUpdateListeners(): Unit

removeLocationUpdateListener

open fun removeLocationUpdateListener(locationUpdateListener: LocationUpdateListener!): Unit