GeofenceMonitor.ReadReports | readReports method

Applies to Windows and Windows Phone

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

Syntax


var iVectorView = geofenceMonitor.readReports();

Parameters

This method has no parameters.

Return value

Type: IVectorView<GeofenceStateChangeReport> [JavaScript/C++] | System.Collections.Generic.IReadOnlyList<GeofenceStateChangeReport> [.NET]

collection of status changes to the GeofenceMonitor.

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Geolocation.Geofencing
Windows::Devices::Geolocation::Geofencing [C++]

Metadata

Windows.winmd

See also

Geofence
GeofenceMonitor

 

 

Show:
© 2014 Microsoft