GeofenceHardware.GetMonitoringTypes Method

Definition

Returns all the hardware geofence monitoring systems which are supported

[Android.Runtime.Register("getMonitoringTypes", "()[I", "")]
public int[]? GetMonitoringTypes ();
[<Android.Runtime.Register("getMonitoringTypes", "()[I", "")>]
member this.GetMonitoringTypes : unit -> int[]

Returns

Int32[]

An array of all the monitoring types. An array of length 0 is returned in case of errors.

Attributes

Remarks

Returns all the hardware geofence monitoring systems which are supported

Call #getStatusOfMonitoringType(int) to know the current state of a monitoring system.

Requires android.Manifest.permission#LOCATION_HARDWARE permission to access geofencing in hardware.

Java documentation for android.hardware.location.GeofenceHardware.getMonitoringTypes().

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