ToastNotifierCompat Class

Definition

Allows you to show and schedule toast notifications.

C#
public sealed class ToastNotifierCompat
Inheritance
ToastNotifierCompat

Properties

Setting

Gets a value that tells you whether there is an app, user, or system block that prevents the display of a toast notification.

Methods

AddToSchedule(ScheduledToastNotification)

Adds a ScheduledToastNotification for later display by Windows.

GetScheduledToastNotifications()

Gets the collection of ScheduledToastNotification objects that this app has scheduled for display.

Hide(ToastNotification)

Hides the specified toast notification from the screen (moves it into Action Center).

RemoveFromSchedule(ScheduledToastNotification)

Cancels the scheduled display of a specified ScheduledToastNotification.

Show(ToastNotification)

Displays the specified toast notification.

Update(NotificationData, String, String)

Updates the existing toast notification that has the specified tag and belongs to the specified notification group.

Update(NotificationData, String)

Updates the existing toast notification that has the specified tag.

Applies to

Produit Versions
Windows Community Toolkit 7.0.0, 7.1.0