FileDocCategorySizeDatePackage
GeofenceHardwareMonitorCallback.javaAPI DocAndroid 5.1 API2507Thu Mar 12 22:22:10 GMT 2015android.hardware.location

GeofenceHardwareMonitorCallback

public abstract class GeofenceHardwareMonitorCallback extends Object
The callback class associated with the status change of hardware monitors in {@link GeofenceHardware}
hide

Fields Summary
Constructors Summary
Methods Summary
public voidonMonitoringSystemChange(int monitoringType, boolean available, android.location.Location location)
The callback called when the state of a monitoring system changes. {@link GeofenceHardware#MONITORING_TYPE_GPS_HARDWARE} is an example of a monitoring system.

deprecated
use {@link #onMonitoringSystemChange(GeofenceHardwareMonitorEvent)} instead. NOTE: this API is will remain to be called on Android API 21 and above for backwards compatibility. But clients must stop implementing it when updating their code.
param
monitoringType The type of the monitoring system.
param
available Indicates whether the system is currently available or not.
param
location The last known location according to the monitoring system.

    
public voidonMonitoringSystemChange(GeofenceHardwareMonitorEvent event)
The callback called when the sate of a monitoring system changes. {@link GeofenceHardware#MONITORING_TYPE_GPS_HARDWARE} is an example of a monitoring system. {@link GeofenceHardware#MONITOR_CURRENTLY_AVAILABLE} is an example of a monitoring status. {@link GeofenceHardware#SOURCE_TECHNOLOGY_GNSS} is an example of a source. This callback must be used instead of {@link #onMonitoringSystemChange(int, boolean, android.location.Location)}. NOTE: this API is only called on Android API 21 and above.

param
event An object representing the monitoring system change event.