Share via


GeofenceMonitorStatus 枚举

定义

指示 GeofenceMonitor 的当前状态。

public enum class GeofenceMonitorStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class GeofenceMonitorStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum GeofenceMonitorStatus
var value = Windows.Devices.Geolocation.Geofencing.GeofenceMonitorStatus.ready
Public Enum GeofenceMonitorStatus
继承
GeofenceMonitorStatus
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
应用功能
location

字段

Disabled 3

拒绝访问位置。

Initializing 1

监视器正在初始化。

NoData 2

没有有关监视器状态的数据。

NotAvailable 5

地理围栏监视器不可用。

NotInitialized 4

地理围栏监视器尚未初始化。

Ready 0

监视器已准备就绪并处于活动状态。

适用于

另请参阅