-api-id | -api-type |
---|---|
M:Windows.Devices.Geolocation.Geofencing.Geofence.#ctor(System.String,Windows.Devices.Geolocation.IGeoshape,Windows.Devices.Geolocation.Geofencing.MonitoredGeofenceStates,System.Boolean) |
winrt method |
Initializes a new Geofence object given the id, the shape of the geofence, the states to monitor the geofence for, and the singleUse flag.
The Id of the geofence.
The area that defines the geofence to monitor.
The states to monitor the geofence for.
True indicates the geofence should be monitored only for one use. False indicates the geofence should be monitored for multiple uses.
Geofencing, start to finish, Geofence(String, IGeoshape), Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan), Geofence(String, IGeoshape, MonitoredGeofenceStates, Boolean, TimeSpan, DateTime, TimeSpan)
location