Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.45 KB

geofencemonitor_geofences.md

File metadata and controls

32 lines (22 loc) · 1.45 KB
-api-id -api-type
P:Windows.Devices.Geolocation.Geofencing.GeofenceMonitor.Geofences
winrt property

Windows.Devices.Geolocation.Geofencing.GeofenceMonitor.Geofences

-description

Returns a vector of the app's Geofence objects currently registered with the system-wide GeofenceMonitor.

-property-value

A collection of the Geofence objects to monitor.

-remarks

Register a Geofence to be monitored by the system by adding it to this collection.

Geofences are persisted to disk, so they only need to be added to the system once. Attempting to add a Geofence with an Id that is already registered will throw an exception.

Attempting to remove a Geofence from the Geofences property will fail with an exception if the specified Geofence is registered with the system but does not belong to the calling application's collection.

This vector reflects only updates made by the app. To view changes made by the system, as in after a single-use Geofence is triggered and removed, the app can call this property again or safely remove the removed Geofence from a previously returned vector.

-examples

-see-also

Geofence

-capabilities

location