ToastNotificationManagerCompat Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides access to sending and managing toast notifications. Works for all types of apps, even Win32 non-MSIX/sparse apps.
public static class ToastNotificationManagerCompat
type ToastNotificationManagerCompat = class
Public Class ToastNotificationManagerCompat
- Inheritance
-
ToastNotificationManagerCompat
Properties
CanUseHttpImages |
Gets a value indicating whether http images can be used within toasts. This is true if running with package identity (UWP, MSIX, or sparse package). |
History |
Gets the ToastNotificationHistoryCompat object. |
Methods
CreateToastNotifier() |
Creates a toast notifier. |
Uninstall() |
If you're not using MSIX, call this when your app is being uninstalled to properly clean up all notifications and notification-related resources. Note that this must be called from your app's main EXE (the one that you used notifications for) and not a separate uninstall EXE. If called from a MSIX app, this method no-ops. |
WasCurrentProcessToastActivated() |
Gets whether the current process was activated due to a toast activation. If so, the OnActivated event will be triggered soon after process launch. |
Events
OnActivated |
Event that is triggered when a notification or notification button is clicked. Subscribe to this event in your app's initial startup code. |