public abstract class BaseLocationObservable<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected android.location.LocationManager |
mLocationManager |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseLocationObservable(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
call(<any> subscriber) |
protected android.location.Location |
getLasKnowLocation(<any> observer) |
protected void |
getLocationUpdates(<any> observer) |
protected boolean |
isGPSEnabled() |
protected boolean |
isNetworkEnabled() |
protected abstract void |
onLocationFixed(<any> observer) |
void |
setLocationListener(android.location.LocationListener locationListener) |
void |
stopLocating() |
protected BaseLocationObservable(android.content.Context context)
protected abstract void onLocationFixed(<any> observer)
public void setLocationListener(android.location.LocationListener locationListener)
public void call(<any> subscriber)
protected boolean isGPSEnabled()
protected boolean isNetworkEnabled()
protected android.location.Location getLasKnowLocation(<any> observer)
protected void getLocationUpdates(<any> observer)
public void stopLocating()