PhoneTrigger PhoneTrigger PhoneTrigger PhoneTrigger PhoneTrigger Class

Definition

Represents a phone event that triggers a background task.

public : sealed class PhoneTrigger : IBackgroundTrigger
struct winrt::Windows::ApplicationModel::Background::PhoneTrigger : IBackgroundTrigger
public sealed class PhoneTrigger : IBackgroundTrigger
Public NotInheritable Class PhoneTrigger Implements IBackgroundTrigger
var phoneTrigger = new phoneTrigger(type, oneShot);
Attributes

Windows 10 requirements

Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0) Windows Desktop Extension SDK (introduced v10.0.10586.0) Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced v1) Windows.ApplicationModel.Calls.Background.CallsBackgroundContract (introduced v1)

Constructors

PhoneTrigger(PhoneTriggerType, Boolean) PhoneTrigger(PhoneTriggerType, Boolean) PhoneTrigger(PhoneTriggerType, Boolean) PhoneTrigger(PhoneTriggerType, Boolean) PhoneTrigger(PhoneTriggerType, Boolean)

Initializes a new instance of the PhoneTrigger class.

Properties

OneShot OneShot OneShot OneShot OneShot

Gets a Boolean value indicating if the trigger is a one-shot notification.

TriggerType TriggerType TriggerType TriggerType TriggerType

Gets the type of phone event indicated by the trigger.

See also