Geofence.SingleUse Geofence.SingleUse Geofence.SingleUse Geofence.SingleUse Geofence.SingleUse Property

Definition

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

public : Platform::Boolean SingleUse { get; }
bool SingleUse();
public bool SingleUse { get; }
Public ReadOnly Property SingleUse As bool
var bool = geofence.singleUse;

Property Value

bool bool bool

True indicates the geofence should be monitored only for one use. False indicates the geofence should be monitored for multiple uses.

Additional features and requirements

Capabilities
location

Remarks

A geofence is considered used when all MonitoredStates have been triggered. If a geofence is only being monitored for the Entered event and SingleUse is set to true, then entering the geofence will mark it as used and it will be removed. If a geofence is being monitored for both Entered and Exited events and SingleUse is set to true, then the geofence will be removed after the user has both entered and exited the geofence.