GeofenceStateChangeReport
GeofenceStateChangeReport
GeofenceStateChangeReport
GeofenceStateChangeReport
Class
Definition
public : sealed class GeofenceStateChangeReport : IGeofenceStateChangeReportpublic sealed class GeofenceStateChangeReport : IGeofenceStateChangeReportPublic NotInheritable Class GeofenceStateChangeReport Implements IGeofenceStateChangeReport// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Use the GeofenceMonitor.ReadReports method to get a collection of GeofenceStateChangeReport objects which contain information about changes in state to a geofence.
Properties
Geofence Geofence Geofence Geofence
The Geofence object whose state has changed.
public : Geofence Geofence { get; }public Geofence Geofence { get; }Public ReadOnly Property Geofence As Geofence// You can use this property in JavaScript.
- See Also
Geoposition Geoposition Geoposition Geoposition
The position of the Geofence object whose state has changed.
public : Geoposition Geoposition { get; }public Geoposition Geoposition { get; }Public ReadOnly Property Geoposition As Geoposition// You can use this property in JavaScript.
The position of the Geofence object whose state has changed.
- See Also
NewState NewState NewState NewState
The new state of the Geofence object whose state has changed.
public : GeofenceState NewState { get; }public GeofenceState NewState { get; }Public ReadOnly Property NewState As GeofenceState// You can use this property in JavaScript.
The new state of the Geofence object whose state has changed.
- See Also
RemovalReason RemovalReason RemovalReason RemovalReason
Indicates the reason a Geofence was removed.
public : GeofenceRemovalReason RemovalReason { get; }public GeofenceRemovalReason RemovalReason { get; }Public ReadOnly Property RemovalReason As GeofenceRemovalReason// You can use this property in JavaScript.
Indicates the reason a geofence was removed.
Remarks
This property defaults to a value of Used. You should ignore this property unless the Geofence has changed state to being Removed.
Removal event notifications can happen when the app is in the foreground or the background. However, removal events themselves do not fire the trigger when the app is in the background. This means that background apps cannot use the removal event to wake up the app. When an app comes back from being in the background, it can see the removal event that occurred waiting in the GeofenceStateChangeReports.
- See Also