LocationTrigger 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
struct winrt::Windows::ApplicationModel::Background::LocationTrigger : IBackgroundTrigger
public sealed class LocationTrigger : IBackgroundTrigger
Public NotInheritable Class LocationTrigger Implements IBackgroundTrigger
var locationTrigger = new locationTrigger(triggerType);
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) LocationTrigger(LocationTriggerType)

Initializes a new instance of a location event trigger.

Properties

TriggerType TriggerType TriggerType TriggerType TriggerType

The type of location event for this trigger.

See also