Android.Hardware.Location.GeofenceHardware.RegisterForMonitorStateChangeCallback Method
Register the callback to be notified when the state of a hardware geofence monitoring system changes.

Syntax

[Android.Runtime.Register("registerForMonitorStateChangeCallback", "(ILandroid/hardware/location/GeofenceHardwareMonitorCallback;)Z", "")]
public bool RegisterForMonitorStateChangeCallback ([Android.Runtime.GeneratedEnum] GeofenceMonitoringType monitoringType, GeofenceHardwareMonitorCallback callback)

Parameters

monitoringType
Type of the monitor
callback
Callback that will be called.

Returns

Documentation for this section has not yet been entered.

Remarks

Register the callback to be notified when the state of a hardware geofence monitoring system changes. For instance, it can change from GeofenceHardware.MonitorCurrentlyAvailable to GeofenceHardware.MonitorCurrentlyUnavailable

Requires Android.Manifest.Permission.AccessFineLocation permission when GeofenceHardware.MonitoringTypeGpsHardware is used.

Requires Android.Manifest.Permission.LocationHardware permission to access geofencing in hardware.

This API should not be called directly by the app developers. A higher level api which abstracts the hardware should be used instead. All the checks are done by the higher level public API. Any needed locking should be handled by the higher level API.

The same callback object can be used to be informed of geofence transitions and state changes of the underlying hardware subsystem.

[Android Documentation]

Requirements

Namespace: Android.Hardware.Location
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18