public class LostLocationEngine
extends com.mapbox.services.android.telemetry.location.LocationEngine
implements com.mapzen.android.lost.api.LostApiClient.ConnectionCallbacks, com.mapzen.android.lost.api.LocationListener
| Constructor and Description |
|---|
LostLocationEngine(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
android.location.Location |
getLastLocation() |
static com.mapbox.services.android.telemetry.location.LocationEngine |
getLocationEngine(android.content.Context context) |
boolean |
isConnected() |
void |
onConnected() |
void |
onConnectionSuspended() |
void |
onLocationChanged(android.location.Location location) |
void |
onProviderDisabled(java.lang.String provider) |
void |
onProviderEnabled(java.lang.String provider) |
void |
removeLocationUpdates() |
void |
requestLocationUpdates() |
addLocationEngineListener, getFastestInterval, getInterval, getPriority, getSmallestDisplacement, isBetterLocation, removeLocationEngineListener, setFastestInterval, setInterval, setPriority, setSmallestDisplacementpublic static com.mapbox.services.android.telemetry.location.LocationEngine getLocationEngine(android.content.Context context)
public void activate()
activate in class com.mapbox.services.android.telemetry.location.LocationEnginepublic void deactivate()
deactivate in class com.mapbox.services.android.telemetry.location.LocationEnginepublic boolean isConnected()
isConnected in class com.mapbox.services.android.telemetry.location.LocationEnginepublic void onConnected()
onConnected in interface com.mapzen.android.lost.api.LostApiClient.ConnectionCallbackspublic void onConnectionSuspended()
onConnectionSuspended in interface com.mapzen.android.lost.api.LostApiClient.ConnectionCallbackspublic android.location.Location getLastLocation()
getLastLocation in class com.mapbox.services.android.telemetry.location.LocationEnginepublic void requestLocationUpdates()
requestLocationUpdates in class com.mapbox.services.android.telemetry.location.LocationEnginepublic void removeLocationUpdates()
removeLocationUpdates in class com.mapbox.services.android.telemetry.location.LocationEnginepublic void onLocationChanged(android.location.Location location)
onLocationChanged in interface com.mapzen.android.lost.api.LocationListenerpublic void onProviderDisabled(java.lang.String provider)
onProviderDisabled in interface com.mapzen.android.lost.api.LocationListenerpublic void onProviderEnabled(java.lang.String provider)
onProviderEnabled in interface com.mapzen.android.lost.api.LocationListener