public : sealed class GeofenceMonitor
public sealed class GeofenceMonitor
Public NotInheritable Class GeofenceMonitor
// This class does not provide a public constructor.
Windows 10 requirements
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
Use the static Current property to get the GeofenceMonitor object which contains all of an app’s geofence information.
You will receive an IDS_GEOFENCEMONITOR_OUT_OF_SYNC exception if the Location Framework Service event state is out of synchronization with the GeofenceMonitor. You can attempt to recover by removing all event handlers on the GeofenceMonitor or restarting the application. Once all event handlers have been removed, you may add back any event handlers and retry the operation.
|Current Current Current Current Current|
|Geofences Geofences Geofences Geofences Geofences|
|LastKnownGeoposition LastKnownGeoposition LastKnownGeoposition LastKnownGeoposition LastKnownGeoposition||
Last reading of the device's location.
|Status Status Status Status Status||
Indicates the current state of the GeofenceMonitor.
|ReadReports() ReadReports() ReadReports() ReadReports() ReadReports()|
|GeofenceStateChanged GeofenceStateChanged GeofenceStateChanged GeofenceStateChanged GeofenceStateChanged|
|StatusChanged StatusChanged StatusChanged StatusChanged StatusChanged||
Raised when the status of the GeofenceMonitor has changed.