LocationTrigger LocationTrigger LocationTrigger LocationTrigger Class

Definition

Represents a location event that triggers a background task. This is used for Geofencing.

public : sealed class LocationTrigger : IBackgroundTrigger, ILocationTriggerpublic sealed class LocationTrigger : IBackgroundTrigger, ILocationTriggerPublic NotInheritable Class LocationTrigger Implements IBackgroundTrigger, ILocationTrigger// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

LocationTrigger(LocationTriggerType) LocationTrigger(LocationTriggerType) LocationTrigger(LocationTriggerType) LocationTrigger(LocationTriggerType)

Initializes a new instance of a location event trigger.

public : LocationTrigger(LocationTriggerType triggerType)public LocationTrigger(LocationTriggerType triggerType)Public Sub New(triggerType As LocationTriggerType)// You can use this method in JavaScript.
Parameters
triggerType
LocationTriggerType LocationTriggerType LocationTriggerType LocationTriggerType

The type of location event for this trigger.

Properties

TriggerType TriggerType TriggerType TriggerType

The type of location event for this trigger.

public : LocationTriggerType TriggerType { get; }public LocationTriggerType TriggerType { get; }Public ReadOnly Property TriggerType As LocationTriggerType// You can use this property in JavaScript.
Value
LocationTriggerType LocationTriggerType LocationTriggerType LocationTriggerType

The type of location event for this trigger.