Edit

Share via


NotificationActivator Class

Definition

Caution

You can now subscribe to activation by simpy using the ToastNotificationManagerCompat.OnActivated event. We recommend deleting your NotificationActivator and switching to using the event.

Apps must implement this activator to handle notification activation.

[System.Obsolete("You can now subscribe to activation by simpy using the ToastNotificationManagerCompat.OnActivated event. We recommend deleting your NotificationActivator and switching to using the event.")]
public abstract class NotificationActivator : Microsoft.Toolkit.Uwp.Notifications.NotificationActivator.INotificationActivationCallback
[<System.Obsolete("You can now subscribe to activation by simpy using the ToastNotificationManagerCompat.OnActivated event. We recommend deleting your NotificationActivator and switching to using the event.")>]
type NotificationActivator = class
    interface NotificationActivator.INotificationActivationCallback
Public MustInherit Class NotificationActivator
Implements NotificationActivator.INotificationActivationCallback
Inheritance
NotificationActivator
Attributes
Implements

Constructors

NotificationActivator()

Methods

Activate(String, String, NotificationActivator+NOTIFICATION_USER_INPUT_DATA[], UInt32)

The method called when your notification is clicked.

OnActivated(String, NotificationUserInput, String)

This method will be called when the user clicks on a foreground or background activation on a toast. Parent app must implement this method.

Applies to