Geofence Geofence Geofence Geofence Geofence Class

Definition

Contains the functionality to define a geofence (a geographical area of interest) to monitor.

public : sealed class Geofence : IGeofence
struct winrt::Windows::Devices::Geolocation::Geofencing::Geofence : IGeofence
public sealed class Geofence : IGeofence
Public NotInheritable Class Geofence Implements IGeofence
var geofence = new geofence(id, geoshape);
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
location

Constructors

Geofence(String, IGeoshape) Geofence(String, IGeoshape) Geofence(String, IGeoshape) Geofence(String, IGeoshape) Geofence(String, IGeoshape)

Initializes a new Geofence object given the id and the shape of the geofence.

Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean)

Initializes a new Geofence object given the id, the shape of the geofence, the states to monitor the geofence for, and the singleUse flag.

Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan)

Initializes a new Geofence object given the id, the shape of the geofence, the states to monitor the geofence for, the singleUse flag, and the dwellTime for the geofence.

Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan, DateTime, TimeSpan) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan, DateTime, TimeSpan) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan, DateTime, TimeSpan) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan, DateTime, TimeSpan) Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan, DateTime, TimeSpan)

Initializes a new Geofence object given the id, the shape of the geofence, the states to monitor the geofence for, the singleUse flag, the dwellTime for the geofence, the time to start monitoring the geofence, and the duration of the geofence.

Properties

Duration Duration Duration Duration Duration

Gets the time window, beginning after the StartTime, during which the Geofence is monitored.

DwellTime DwellTime DwellTime DwellTime DwellTime

The minimum time that a position has to be inside or outside of the Geofence in order for the notification to be triggered.

Geoshape Geoshape Geoshape Geoshape Geoshape

The shape of the geofence region.

Id Id Id Id Id

The id of the Geofence.

MonitoredStates MonitoredStates MonitoredStates MonitoredStates MonitoredStates

Indicates the states that the Geofence is being monitored for.

SingleUse SingleUse SingleUse SingleUse SingleUse

Indicates whether the Geofence should be triggered once or multiple times.

StartTime StartTime StartTime StartTime StartTime

The time to start monitoring the Geofence.

See Also