public class BasicLocationSource extends AbstractLocationSource
| Constructor and Description |
|---|
BasicLocationSource(android.content.Context context)
Default constructor to create fused location source implementation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates the provider.
|
void |
deactivate()
Deactivates this provider.
|
android.location.Location |
getLastKnownLocation()
Last valid location of the user.
|
void |
onLocationChanged(android.location.Location location)
Is called when new location is found by the corresponding location source provider.
|
addLocationUpdateListener, getAllLocationUpdateListeners, onLocationAvailability, onLocationResult, onProviderDisabled, onProviderEnabled, onStatusChanged, removeAllLocationUpdateListeners, removeLocationUpdateListenerpublic BasicLocationSource(android.content.Context context)
@Nullable public android.location.Location getLastKnownLocation()
LocationSourcepublic void activate()
LocationSourcepublic void deactivate()
LocationSourcepublic void onLocationChanged(android.location.Location location)
LocationSourceonLocationChanged in interface android.location.LocationListeneronLocationChanged in interface LocationSourceonLocationChanged in class AbstractLocationSourcelocation - new location found by the location provider.