PhoneTrigger
PhoneTrigger
PhoneTrigger
PhoneTrigger
Class
Definition
Represents a phone event that triggers a background task.
public : sealed class PhoneTrigger : IBackgroundTrigger, IPhoneTriggerpublic sealed class PhoneTrigger : IBackgroundTrigger, IPhoneTriggerPublic NotInheritable Class PhoneTrigger Implements IBackgroundTrigger, IPhoneTrigger// You can use this class in JavaScript.
- Attributes
| Device family |
Windows Mobile Extension SDK (introduced v10.0.10240.0)
Windows Desktop Extension SDK (introduced v10.0.10586.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)
Initializes a new instance of the PhoneTrigger class.
public : PhoneTrigger(PhoneTriggerType type, bool oneShot)public PhoneTrigger(PhoneTriggerType type, Boolean oneShot)Public Sub New(type As PhoneTriggerType, oneShot As Boolean)// You can use this method in JavaScript.
Specifies the type of phone event.
- oneShot
- bool Boolean Boolean Boolean
Indicates if the trigger is a one-shot notification. If you weren't subscribed when a one-shot notification was sent, you get nothing. If you weren't connected when you fired a one-shot notification, nothing happens.
Properties
OneShot OneShot OneShot OneShot
Gets a Boolean value indicating if the trigger is a one-shot notification.
public : PlatForm::Boolean OneShot { get; }public bool OneShot { get; }Public ReadOnly Property OneShot As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
A Boolean value indicating if the trigger is a one-shot notification.
Remarks
If you weren't subscribed when a one-shot notification was sent, you get nothing. If you weren't connected when you fired a one-shot notification, nothing happens.
TriggerType TriggerType TriggerType TriggerType
Gets the type of phone event indicated by the trigger.
public : PhoneTriggerType TriggerType { get; }public PhoneTriggerType TriggerType { get; }Public ReadOnly Property TriggerType As PhoneTriggerType// You can use this property in JavaScript.
The type of phone event indicated by the trigger.