public : sealed class GeofenceMonitor : IGeofenceMonitor
struct winrt::Windows::Devices::Geolocation::Geofencing::GeofenceMonitor : IGeofenceMonitor
public sealed class GeofenceMonitor : IGeofenceMonitor
Public NotInheritable Class GeofenceMonitor Implements IGeofenceMonitor
// This class does not provide a public constructor.
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
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.