LocationTrigger class

Applies to Windows and Windows Phone

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

Syntax


var locationTrigger = new Windows.ApplicationModel.Background.LocationTrigger();

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

Members

The LocationTrigger class has these types of members:

Constructors

The LocationTrigger class has these constructors.

ConstructorDescription
LocationTrigger Initializes a new instance of a location event trigger.

 

Properties

The LocationTrigger class has these properties.

PropertyAccess typeDescription

TriggerType

Read-onlyThe type of location event for this trigger.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Background
Windows::ApplicationModel::Background [C++]

Metadata

Windows.winmd

See also

Object
IBackgroundTrigger
Windows.Devices.Geolocation.Geofencing

 

 

Show:
© 2014 Microsoft