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
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)

Initializes a new instance of a location event trigger.

public LocationTrigger(LocationTriggerType triggerType)public LocationTrigger(LocationTriggerType triggerType)Public Sub New(triggerType As LocationTriggerType)
Parameters
triggerType
LocationTriggerType LocationTriggerType LocationTriggerType

The type of location event for this trigger.

Attributes

Properties

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
Value
LocationTriggerType LocationTriggerType LocationTriggerType

The type of location event for this trigger.

Attributes