FileDocCategorySizeDatePackage
GeofenceProvider.javaAPI DocAndroid 5.1 API2315Thu Mar 12 22:22:30 GMT 2015com.android.location.provider

GeofenceProvider

public abstract class GeofenceProvider extends Object
Base class for geofence providers implemented as unbundled services.

Geofence providers can be implemented as services and return the result of {@link com.android.location.provider.GeofenceProvider#getBinder()} in its getBinder() method.

IMPORTANT: This class is effectively a public API for unbundled applications, and must remain API stable. See README.txt in the root of this package for more information.

Fields Summary
private android.hardware.location.GeofenceHardware
mGeofenceHardware
private IGeofenceProvider.Stub
mProvider
Constructors Summary
Methods Summary
public android.os.IBindergetBinder()
Returns the Binder interface for the geofence provider. This is intended to be used for the onBind() method of a service that implements a geofence service.

return
the IBinder instance for the provider


                                          
       
        return mProvider;
    
public abstract voidonGeofenceHardwareChange(android.hardware.location.GeofenceHardware geofenceHardware)
Called when GeofenceHardware object becomes available.

param
geofenceHardware Geofence Hardware object. This can be null when for some reason the service connection gets disconnected.