AccessoryNotificationType Enum

Definition

Represents the types of notifications that are raised on the phone. The IAccessoryNotificationTriggerDetails are available to the IBackgroundTask.Run method which is executed upon triggering by the AccessoryManager. Inside the IAccessoryNotificationTriggerDetails is an INotification object. The BackgroundTask developer needs to investigate this interface to determine what the specific notification type is. IAccessoryNotificationTriggerDetails.AccessoryNotificationType contains a value from a AccessoryNotificationType enumeration, listed below.

With knowledge of the type of notification, the BackgroundTask developer can use the more specific interfaces to gather information about the notification. The values are bit flags. You can OR the enum values together to indicate which notification types to be alerted for.

This enumeration supports a bitwise combination of its member values.

public enum class AccessoryNotificationType
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
enum class AccessoryNotificationType
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
public enum AccessoryNotificationType
var value = Windows.Phone.Notification.Management.AccessoryNotificationType.none
Public Enum AccessoryNotificationType
Inheritance
AccessoryNotificationType
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced in v1.0)
App capabilities
accessoryManager

Fields

Alarm 8

A notification from an Alarm that has fired.

AppUninstalled 32

A notification that an app is uninstalled.

BatterySaver 256

A notification that batter saver is turned on of off.

CalendarChanged 4096

A notification indicating a calendar event has changed.

CortanaTile 1024

A notification from a Cortana tile. For more information, see CortanaTileNotificationTriggerDetails.

Dnd 64

A notification that do not disturb is turned on or off.

DrivingMode 128

A notification that driving mode is turned on or off.

Email 2

A notification indicating a new batch of emails received

EmailReadStatusChanged 16384

A notification indicating the read status of an email has changed.

Media 512

A notification indicating that the media playback status has changed.

None 0

The notification type is "None".

Phone 1

A notification indicating a phone call was received.

Reminder 4

A notification from a Reminder that has fired.

Toast 16

A notification from an app that manifests as a toast in the phone UI.

ToastCleared 2048

A notification indicating a toast has been cleared.

VolumeChanged 8192

A notification indicating the volume has changed.

Remarks

Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.

Applies to