MonitoredGeofenceStates Enum

Definition

Indicates the state or states of the Geofences that are currently being monitored by the system.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum class MonitoredGeofenceStates
enum MonitoredGeofenceStates
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MonitoredGeofenceStates
var value = Windows.Devices.Geolocation.Geofencing.MonitoredGeofenceStates.none
Public Enum MonitoredGeofenceStates
Inheritance
MonitoredGeofenceStates
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
location

Fields

Entered 1

The device has entered a geofence area.

Exited 2

The device has left a geofence area.

None 0

No flag is set.

Removed 4

The geofence has been removed.

Remarks

You must specify the Entered or Exited states, or both, for a geofence to be monitored. It is not possible to create a geofence that only monitors the Removed state.

Applies to

See also