Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.74 KB

geofence_geofence_161909132.md

File metadata and controls

34 lines (24 loc) · 1.74 KB
-api-id -api-type
M:Windows.Devices.Geolocation.Geofencing.Geofence.#ctor(System.String,Windows.Devices.Geolocation.IGeoshape)
winrt method

Windows.Devices.Geolocation.Geofencing.Geofence.Geofence

-description

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

-parameters

-param id

The Id of the geofence.

-param geoshape

The area that defines the geofence to monitor.

-remarks

When this constructor is used, the MonitoredStates will default to monitor for both the Entered and Exited states, SingleUse will default to false, the DwellTime will default to 10 seconds, the StartTime will default to 0 meaning start immediately, and the Duration will default to 0, meaning forever.

The id value must be non-null and less than 64 characters.

The geoshape parameter must be a non-null Geocircle with a SpatialReferenceId that matches the platform or an exception will be thrown.

-examples

-see-also

Geofencing, start to finish, Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean), Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan), Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan, DateTime, TimeSpan)

-capabilities

location