interface LocationSource
Interface that provides location data, typically to a TomtomMap object. A TomtomMap has a built-in location provider, however, it can be replaced with custom one that implements this interface.
| abstract fun activate(): UnitActivates the provider. The provider will notify the listener periodically, until the user calls deactivate(). | |
| abstract fun addLocationUpdateListener(locationUpdateListener: LocationUpdateListener!): UnitAdds location update listener. | |
| abstract fun deactivate(): UnitDeactivates this provider. The provider does not send any location notifications. | |
| abstract fun getAllLocationUpdateListeners(): MutableList<LocationUpdateListener!>!Obtains the list of all added location update listeners. | |
| abstract fun getLastKnownLocation(): Location?Last valid location of the user. The value can be null. | |
| abstract fun onLocationChanged(location: Location!): UnitIs called when new location is found by the corresponding location source provider. | |
| abstract fun removeAllLocationUpdateListeners(): UnitRemoves all location update listeners. | |
| abstract fun removeLocationUpdateListener(locationUpdateListener: LocationUpdateListener!): UnitRemoves location update listener. | 
| abstract class AbstractLocationSource : LocationSource, LocationListenerBase class for all LocationSources. It contains the listeners list and propagate onLocationChange events to added listeners. | |
| open class FusedLocationSource : LocationCallback, LocationSource, ConnectionCallbacks, OnConnectionFailedListener, ContextableDefault location source implementation. It is based on FusedLocationService provided by Google. When no custom location source provided, map is using it to get the user location. It uses {LocationUpdateListener} to notify about new location updates. |