GeofenceHardwareMonitorCallback.OnMonitoringSystemChange Method

Definition

The callback called when the state of a monitoring system changes.

[Android.Runtime.Register("onMonitoringSystemChange", "(IZLandroid/location/Location;)V", "GetOnMonitoringSystemChange_IZLandroid_location_Location_Handler")]
public virtual void OnMonitoringSystemChange (Android.Hardware.Location.GeofenceMonitoringType monitoringType, bool available, Android.Locations.Location? location);
[<Android.Runtime.Register("onMonitoringSystemChange", "(IZLandroid/location/Location;)V", "GetOnMonitoringSystemChange_IZLandroid_location_Location_Handler")>]
abstract member OnMonitoringSystemChange : Android.Hardware.Location.GeofenceMonitoringType * bool * Android.Locations.Location -> unit
override this.OnMonitoringSystemChange : Android.Hardware.Location.GeofenceMonitoringType * bool * Android.Locations.Location -> unit

Parameters

monitoringType
GeofenceMonitoringType

The type of the monitoring system.

available
Boolean

Indicates whether the system is currently available or not.

location
Location

The last known location according to the monitoring system.

Attributes

Remarks

The callback called when the state of a monitoring system changes. GeofenceHardware#MONITORING_TYPE_GPS_HARDWARE is an example of a monitoring system.

This member is 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.

Java documentation for android.hardware.location.GeofenceHardwareMonitorCallback.onMonitoringSystemChange(int, boolean, android.location.Location).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to