abstract class AbstractLocationSource : LocationSource, LocationListener
Base class for all LocationSources. It contains the listeners list and propagate onLocationChange events to added listeners.
AbstractLocationSource()
Base class for all LocationSources. It contains the listeners list and propagate onLocationChange events to added listeners. |
open fun addLocationUpdateListener(locationUpdateListener: LocationUpdateListener!): Unit |
|
open fun getAllLocationUpdateListeners(): MutableList<LocationUpdateListener!>! |
|
open fun onLocationChanged(location: Location!): Unit |
|
open fun onProviderDisabled(provider: String!): Unit |
|
open fun onProviderEnabled(provider: String!): Unit |
|
open fun onStatusChanged(provider: String!, status: Int, extras: Bundle!): Unit |
|
open fun removeAllLocationUpdateListeners(): Unit |
|
open fun removeLocationUpdateListener(locationUpdateListener: LocationUpdateListener!): Unit |
abstract fun activate(): Unit
Activates the provider. The provider will notify the listener periodically, until the user calls deactivate(). |
|
abstract fun deactivate(): Unit
Deactivates this provider. The provider does not send any location notifications. |
|
abstract fun getLastKnownLocation(): Location?
Last valid location of the user. The value can be null. |
open class BasicLocationSource : AbstractLocationSource
The basic implementation of the LocationSource which relies on the default Android mechanism to obtain location ( via LocationManager ). |