de.unikassel.android.sdcframework.devices
Class AbstractLocationDevice.ProviderLocationListener

Package class diagram package AbstractLocationDevice.ProviderLocationListener
java.lang.Object
  extended by 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


Field Summary
private  AtomicInteger lastState
          The last known state
private  String provider
          The observed provider
 
Constructor Summary
AbstractLocationDevice.ProviderLocationListener(String provider)
          Constructor
 
Method Summary
 void onLocationChanged(Location location)
           
 void onProviderDisabled(String provider)
           
 void onProviderEnabled(String provider)
           
 void onStatusChanged(String provider, int status, Bundle extras)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

provider

private final String provider
The observed provider


lastState

private final AtomicInteger lastState
The last known state

Constructor Detail

AbstractLocationDevice.ProviderLocationListener

public AbstractLocationDevice.ProviderLocationListener(String provider)
Constructor

Parameters:
provider - the observed provider
Method Detail

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