C# Class NotificationsExtensions.Toasts.ToastContent

Base toast element, which contains at least a visual element.
Inheritance: INotificationContent
Show file Open project: WindowsNotifications/NotificationsExtensions Class Usage Examples

Public Methods

Method Description
GetContent ( ) : string

Retrieves the notification XML content as a string, so that it can be sent with a HTTP POST in a push notification.

GetXml ( ) : XmlDocument

Retrieves the notification XML content as a WinRT XmlDocument, so that it can be used with a local toast notification's constructor on either Windows.UI.Notifications.ToastNotification or Windows.UI.Notifications.ScheduledToastNotification.

ToastContent ( ) : Windows.Data.Xml.Dom

Initializes a new instance of toast content. You must then set the Visual property, which is required for a toast notification. You can optionally set Audio, Actions, and more.

Private Methods

Method Description
ConvertToActionsElement ( IToastActions actions ) : NotificationsExtensions.Toasts.Element_ToastActions
ConvertToElement ( ) : NotificationsExtensions.Toasts.Element_Toast

Method Details

GetContent() public method

Retrieves the notification XML content as a string, so that it can be sent with a HTTP POST in a push notification.
public GetContent ( ) : string
return string

GetXml() public method

Retrieves the notification XML content as a WinRT XmlDocument, so that it can be used with a local toast notification's constructor on either Windows.UI.Notifications.ToastNotification or Windows.UI.Notifications.ScheduledToastNotification.
public GetXml ( ) : XmlDocument
return Windows.Data.Xml.Dom.XmlDocument

ToastContent() public method

Initializes a new instance of toast content. You must then set the Visual property, which is required for a toast notification. You can optionally set Audio, Actions, and more.
public ToastContent ( ) : Windows.Data.Xml.Dom
return Windows.Data.Xml.Dom