GeofenceHardware.GetStatusOfMonitoringType(GeofenceMonitoringType) Method

Definition

Returns current status of a hardware geofence monitoring system.

[Android.Runtime.Register("getStatusOfMonitoringType", "(I)I", "")]
public int GetStatusOfMonitoringType (Android.Hardware.Location.GeofenceMonitoringType monitoringType);
[<Android.Runtime.Register("getStatusOfMonitoringType", "(I)I", "")>]
member this.GetStatusOfMonitoringType : Android.Hardware.Location.GeofenceMonitoringType -> int

Parameters

monitoringType
GeofenceMonitoringType

monitoringType

Returns

Current status of the monitoring type.

Attributes

Remarks

Returns current status of a hardware geofence monitoring system.

Status can be one of #MONITOR_CURRENTLY_AVAILABLE, #MONITOR_CURRENTLY_UNAVAILABLE or #MONITOR_UNSUPPORTED

Some supported hardware monitoring systems might not be available for monitoring geofences in certain scenarios. For example, when a user enters a building, the GPS hardware subsystem might not be able monitor geofences and will change from #MONITOR_CURRENTLY_AVAILABLE to #MONITOR_CURRENTLY_UNAVAILABLE.

Java documentation for android.hardware.location.GeofenceHardware.getStatusOfMonitoringType(int).

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