Microsoft.Windows.AppNotifications.Builder Namespace

Provides APIs for programmatically generating the XML payload for an AppNotification.

Classes

AppNotificationBuilder

Provides APIs for creating the XML string that defines the UI for app notifications.

AppNotificationButton

Represents a button that is displayed on an app notification.

AppNotificationComboBox

Represents a combo box that is displayed on an app notification.

AppNotificationProgressBar

Represents a progress bar that is displayed on an app notification.

AppNotificationTextProperties

Specifies display and localization properties for text displayed on an app notification.

Enums

AppNotificationAudioLooping

Specifies the looping behavior for app notification audio.

AppNotificationButtonStyle

Specifies the button styles that can be assigned to an AppNotificationButton to provide a consistent experience for common scenarios.

AppNotificationDuration

Specifies the duration for which an AppNotification is displayed.

AppNotificationImageCrop

Specifies the cropping options for an image in an AppNotification.

AppNotificationScenario

Specifies the scenario for an app notification, which causes the system to adjust some of the notification behaviors to present a consistent experience for the specified scenario.

AppNotificationSoundEvent

Specifies system sound events that can be played when an app notification is shown.

Examples

App notifications overview

Remarks

App notifications are defined in an XML string. This namespace provides APIs that make it easy to generate the XML payload programmatically. This feature, which is included in the Windows App SDK, is designed to replace the functionality that was previously provided by the ToastContentBuilder class in the UWP Community Toolkit Notifications nuget package.

For guidance on using the AppNotificationBuilder APIs to create the UI for app notifications, see App notification content.

For reference information about the XML schema for app notifications, see App notification content schema.