Share via


GeofenceMonitor.ReadReports Method

Definition

Gets a collection of status changes to the Geofence objects in the Geofences collection of the GeofenceMonitor.

public:
 virtual IVectorView<GeofenceStateChangeReport ^> ^ ReadReports() = ReadReports;
IVectorView<GeofenceStateChangeReport> ReadReports();
public IReadOnlyList<GeofenceStateChangeReport> ReadReports();
function readReports()
Public Function ReadReports () As IReadOnlyList(Of GeofenceStateChangeReport)

Returns

collection of status changes to the Geofence object(s) in GeofenceMonitor.

Windows requirements

App capabilities
location

Remarks

Each report in the collection contains the most recent state for the geofences that changed state since the last time ReadReports was called. Older state changes may be present in the collection if ReadReports hasn't been called over a period of time when many geofence state changes have occurred, but the system may purge these older state changes.

The collection returned from this method may be empty and contain no GeofenceStateChangeReport objects. This can happen if no status changes have occurred since the last time the method was called, either by the app or the background task.

Applies to

See also