public abstract class GeofenceHardwareMonitorCallback extends Object
GeofenceHardware
Constructor and Description |
---|
GeofenceHardwareMonitorCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onMonitoringSystemChange(GeofenceHardwareMonitorEvent event)
The callback called when the sate of a monitoring system changes.
|
void |
onMonitoringSystemChange(int monitoringType,
boolean available,
Location location)
Deprecated.
use
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. |
@Deprecated public void onMonitoringSystemChange(int monitoringType, boolean available, Location location)
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.GeofenceHardware.MONITORING_TYPE_GPS_HARDWARE
is an example of a
monitoring system.monitoringType
- The type of the monitoring system.available
- Indicates whether the system is currently available or not.location
- The last known location according to the monitoring system.public void onMonitoringSystemChange(GeofenceHardwareMonitorEvent event)
GeofenceHardware.MONITORING_TYPE_GPS_HARDWARE
is an example of a monitoring system.
GeofenceHardware.MONITOR_CURRENTLY_AVAILABLE
is an example of a monitoring status.
GeofenceHardware.SOURCE_TECHNOLOGY_GNSS
is an example of a source.
This callback must be used instead of
onMonitoringSystemChange(int, boolean, android.location.Location)
.
NOTE: this API is only called on Android API 21 and above.event
- An object representing the monitoring system change event.