ApplicationTrigger ApplicationTrigger ApplicationTrigger ApplicationTrigger ApplicationTrigger Class

Definition

This allows you to programmatically trigger a background task from within your application.

public : sealed class ApplicationTrigger : IBackgroundTrigger
struct winrt::Windows::ApplicationModel::Background::ApplicationTrigger : IBackgroundTrigger
public sealed class ApplicationTrigger : IBackgroundTrigger
Public NotInheritable Class ApplicationTrigger Implements IBackgroundTrigger
var applicationTrigger = new applicationTrigger();
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Important

An app can only register one ApplicationTrigger with the BackgroundTaskBuilder at any given time.

Constructors

ApplicationTrigger() ApplicationTrigger() ApplicationTrigger() ApplicationTrigger() ApplicationTrigger()

Creates a new ApplicationTrigger class

Methods

RequestAsync() RequestAsync() RequestAsync() RequestAsync() RequestAsync()

This method attempts to set the trigger and start the registered background task.

RequestAsync(ValueSet) RequestAsync(ValueSet) RequestAsync(ValueSet) RequestAsync(ValueSet) RequestAsync(ValueSet)

This method attempts to set the trigger and start the registered background task with specified arguments.