@DeprecatedSince("2020.12", "com.tomtom.online.sdk.location.BasicLocationSource") open class FusedLocationSource : LocationCallback, LocationSource, ConnectionCallbacks, OnConnectionFailedListener, Contextable
Default location source implementation. It is based on FusedLocationService provided by Google. When no custom location source is provided, map is using it to get the user location. It uses {LocationUpdateListener} to notify about new location updates.
FusedLocationSource(context: Context!, locationRequest: LocationRequest!)
Default constructor to create fused location source implementation. |
open fun activate(): Unit open fun activate(locationRequest: LocationRequest!): Unit |
|
open fun addLocationUpdateListener(locationUpdateListener: LocationUpdateListener!): Unit |
|
open fun deactivate(): Unit |
|
open fun getAllLocationUpdateListeners(): MutableList<LocationUpdateListener!>! |
|
open fun getContext(): Context? |
|
open fun getFusedLocationProviderClient(): FusedLocationProviderClient |
|
open fun getLastKnownLocation(): Location? |
|
open fun onConnected(bundle: Bundle?): Unit |
|
open fun onConnectionFailed(connectionResult: ConnectionResult): Unit |
|
open fun onConnectionSuspended(i: Int): Unit |
|
open fun onLocationAvailability(locationAvailability: LocationAvailability!): Unit |
|
open fun onLocationChanged(location: Location!): Unit |
|
open fun onLocationResult(locationResult: LocationResult!): Unit |
|
open fun removeAllLocationUpdateListeners(): Unit |
|
open fun removeLocationUpdateListener(locationUpdateListener: LocationUpdateListener!): Unit |