public class GLocationManager
extends java.lang.Object
implements android.location.LocationListener
| Constructor and Description |
|---|
GLocationManager(android.content.Context mContext,
Res mRes,
org.greenrobot.eventbus.EventBus mEventBus) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
init() |
boolean |
isListening() |
void |
onLocationChanged(android.location.Location location) |
void |
onProviderDisabled(java.lang.String provider) |
void |
onProviderEnabled(java.lang.String provider) |
void |
onStatusChanged(java.lang.String provider,
int i,
android.os.Bundle bundle) |
void |
removeUpdates() |
void |
setListening(boolean listening) |
public GLocationManager(android.content.Context mContext,
Res mRes,
org.greenrobot.eventbus.EventBus mEventBus)
public boolean init()
public void removeUpdates()
public void onLocationChanged(android.location.Location location)
onLocationChanged in interface android.location.LocationListenerpublic void onStatusChanged(java.lang.String provider,
int i,
android.os.Bundle bundle)
onStatusChanged in interface android.location.LocationListenerpublic void onProviderEnabled(java.lang.String provider)
onProviderEnabled in interface android.location.LocationListenerpublic void onProviderDisabled(java.lang.String provider)
onProviderDisabled in interface android.location.LocationListenerpublic boolean isListening()
public void setListening(boolean listening)