GeofenceMonitor.ReadReports GeofenceMonitor.ReadReports GeofenceMonitor.ReadReports GeofenceMonitor.ReadReports GeofenceMonitor.ReadReports Method

Definition

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

public : IVectorView<GeofenceStateChangeReport> ReadReports()
IVectorView<GeofenceStateChangeReport> ReadReports() const;
public IReadOnlyList<GeofenceStateChangeReport> ReadReports()
Public Function ReadReports() As IReadOnlyList<GeofenceStateChangeReport>(Of GeofenceStateChangeReport)
var iVectorView = geofenceMonitor.readReports();

Returns

IReadOnlyList<GeofenceStateChangeReport> IReadOnlyList<GeofenceStateChangeReport> IReadOnlyList<GeofenceStateChangeReport>

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

Additional features and requirements

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.

See also