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

Package class diagram package AbstractLocationDevice.ProviderStateListener
java.lang.Object
  extended by de.unikassel.android.sdcframework.devices.AbstractLocationDevice.ProviderStateListener
All Implemented Interfaces:
LocationListener
Enclosing class:
AbstractLocationDevice

private class AbstractLocationDevice.ProviderStateListener
extends Object
implements LocationListener

Internal location provider state listener implementation


Field Summary
private  String provider
          The observed provider
 
Constructor Summary
AbstractLocationDevice.ProviderStateListener(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

Constructor Detail

AbstractLocationDevice.ProviderStateListener

public AbstractLocationDevice.ProviderStateListener(String provider)
Constructor

Parameters:
provider - the provider to observe for state changes
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