GeofenceHardware.UnregisterForMonitorStateChangeCallback Method

Definition

Unregister the callback that was used with #registerForMonitorStateChangeCallback to notify when the state of the hardware geofence monitoring system changes.

[Android.Runtime.Register("unregisterForMonitorStateChangeCallback", "(ILandroid/hardware/location/GeofenceHardwareMonitorCallback;)Z", "")]
public bool UnregisterForMonitorStateChangeCallback (Android.Hardware.Location.GeofenceMonitoringType monitoringType, Android.Hardware.Location.GeofenceHardwareMonitorCallback? callback);
[<Android.Runtime.Register("unregisterForMonitorStateChangeCallback", "(ILandroid/hardware/location/GeofenceHardwareMonitorCallback;)Z", "")>]
member this.UnregisterForMonitorStateChangeCallback : Android.Hardware.Location.GeofenceMonitoringType * Android.Hardware.Location.GeofenceHardwareMonitorCallback -> bool

Parameters

monitoringType
GeofenceMonitoringType

Type of the monitor

callback
GeofenceHardwareMonitorCallback

Callback that will be called.

Returns

true on success

Attributes

Remarks

Unregister the callback that was used with #registerForMonitorStateChangeCallback to notify when the state of the hardware geofence monitoring system changes.

Requires android.Manifest.permission#ACCESS_FINE_LOCATION permission when #MONITORING_TYPE_GPS_HARDWARE is used.

Requires android.Manifest.permission#LOCATION_HARDWARE 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.

Java documentation for android.hardware.location.GeofenceHardware.unregisterForMonitorStateChangeCallback(int, android.hardware.location.GeofenceHardwareMonitorCallback).

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