FileDocCategorySizeDatePackage
IFusedGeofenceHardware.javaAPI DocAndroid 5.1 API11292Sat Mar 14 05:48:10 GMT 2015android.location

IFusedGeofenceHardware

public interface IFusedGeofenceHardware implements android.os.IInterface
Fused Geofence Hardware interface.

This interface is the basic set of supported functionality by Fused Hardware modules that offer Geofencing capabilities. All operations are asynchronous and the status codes can be obtained via a set of callbacks.

hide

Fields Summary
Constructors Summary
Methods Summary
public voidaddGeofences(android.hardware.location.GeofenceHardwareRequestParcelable[] geofenceRequestsArray)
Adds a given list of geofences to the system.

param
geofenceRequestsArray The list of geofences to add.

public booleanisSupported()
Flags if the interface functionality is supported by the platform.

return
true if the functionality is supported, false otherwise.

public voidmodifyGeofenceOptions(int geofenceId, int lastTransition, int monitorTransitions, int notificationResponsiveness, int unknownTimer, int sourcesToUse)
Modifies the request options if a geofence that is already known by the system.

param
geofenceId The geofence to modify.
param
lastTransition The last known transition state of the geofence.
param
monitorTransitions The set of transitions to monitor.
param
notificationResponsiveness The notification responsivness needed.
param
unknownTimer The time span associated with the.
param
sourcesToUse The source technologies to use. Remarks: keep the options as separate fields to be able to leverage the class GeofenceHardwareRequest without any changes

public voidpauseMonitoringGeofence(int geofenceId)
Pauses monitoring a particular geofence.

param
geofenceId The geofence to pause monitoring.

public voidremoveGeofences(int[] geofenceIds)
Removes a give list of geofences from the system.

param
geofences The list of geofences to remove.

public voidresumeMonitoringGeofence(int geofenceId, int monitorTransitions)
Resumes monitoring a particular geofence.

param
geofenceid The geofence to resume monitoring.
param
transitionsToMonitor The transitions to monitor upon resume. Remarks: keep naming of geofence request options consistent with the naming used in GeofenceHardwareRequest