UserNotificationChangedTrigger UserNotificationChangedTrigger UserNotificationChangedTrigger UserNotificationChangedTrigger UserNotificationChangedTrigger Class

Definition

Represents a trigger that fires when a UserNotification is added or removed.

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

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

The user notification listener requires that explicit user permission be granted before it may be used. Call BackgroundExecutionManager.RequestAccessAsync from the UI thread before attempting to access notifications.

Constructors

UserNotificationChangedTrigger(NotificationKinds) UserNotificationChangedTrigger(NotificationKinds) UserNotificationChangedTrigger(NotificationKinds) UserNotificationChangedTrigger(NotificationKinds) UserNotificationChangedTrigger(NotificationKinds)

Initializes a new instance of the UserNotificationChangedTrigger class.

See also