de.unikassel.android.sdcframework.devices
Class AbstractLocationDevice.ProviderLocationListener
java.lang.Object
de.unikassel.android.sdcframework.devices.AbstractLocationDevice.ProviderLocationListener
- All Implemented Interfaces:
- LocationListener
- Enclosing class:
- AbstractLocationDevice
private class AbstractLocationDevice.ProviderLocationListener
- extends Object
- implements LocationListener
Internal location listener implementation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
provider
private final String provider
- The observed provider
lastState
private final AtomicInteger lastState
- The last known state
AbstractLocationDevice.ProviderLocationListener
public AbstractLocationDevice.ProviderLocationListener(String provider)
- Constructor
- Parameters:
provider
- the observed provider
onLocationChanged
public final void onLocationChanged(Location location)
- Specified by:
onLocationChanged
in interface LocationListener
onStatusChanged
public final void onStatusChanged(String provider,
int status,
Bundle extras)
- Specified by:
onStatusChanged
in interface LocationListener
onProviderEnabled
public final void onProviderEnabled(String provider)
- Specified by:
onProviderEnabled
in interface LocationListener
onProviderDisabled
public final void onProviderDisabled(String provider)
- Specified by:
onProviderDisabled
in interface LocationListener