GeofenceMonitor class

Applies to Windows and Windows Phone

Contains the information about the monitored Geofence objects.

Syntax


var geofenceMonitor = Windows.Devices.Geolocation.Geofencing.GeofenceMonitor.current;

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The GeofenceMonitor class has these types of members:

Events

The GeofenceMonitor class has these events.

EventDescription
GeofenceStateChanged Raised when the state of one or more Geofence objects in the Geofences collection of the GeofenceMonitor has changed
StatusChanged Raised when the state of the GeofenceMonitor has changed.

 

Methods

The GeofenceMonitor class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

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

 

Properties

The GeofenceMonitor class has these properties.

PropertyAccess typeDescription

Current

Read-onlyGets the GeofenceMonitor object which contains all of an app's Geofence information.

Geofences

Read-onlyReturns a vector of the app's Geofence objects currently registered with the system wide GeofenceMonitor.

LastKnownGeoposition

Read-onlyLast reading of the device's location.

Status

Read-onlyIndicates the current state of the GeofenceMonitor.

 

Remarks

Use the Current property to get the GeofenceMonitor object which contains all of an app’s geofence information.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

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

Geofencing, start to finish
Windows.Devices.Geolocation
Geofence
Object

 

 

Show:
© 2014 Microsoft