The Notification object contains all the elements (title, subject...) to build a notification ready to be sent to the user device. It must be provided to the NotificationSDKServer#SendNotification(string, Notification) method.
◆ Notification()
Notification |
( |
string |
title, |
|
|
string |
subject, |
|
|
string |
content |
|
) |
| |
|
inline |
Creates a Notification object from its mandatory attributes.
- Parameters
-
title | Text to be displayed as title of the notification. Must not be null.
On iOS, the title must not contain any '\n' character |
subject | Text to be displayed as subject of the notification. Must not be null. |
content | Text to be used as content of the notification. Will be provided to the client application once the notification has been opened. Must not be null. |
◆ AndroidHeadsUp
(Android only).
Sets the android notification to be heads-up.
True, if the notification is heads-up.
◆ Content
Content of the notification.
◆ HighPriority
(Android only).
Sets the priority of the message.
True, if the notification is high priority.
◆ IOSBadge
(iOS only).
Sets the notification badge to be displayed next to the application icon.
If the badge value is negative, no badge will be sent in the notification, and the badge of the application icon (if there is one) will not be changed.
If the badge value is 0, the notification badge and pending notifications in the Notification Center will be removed.
Default value is -1 (no badge sent).
◆ Subject
Subject of the notification.
◆ Title
Title of the notification.
◆ TrackingIdentifier
Tracking identifier used to differentiate the notifications in the error/success callbacks.
The documentation for this class was generated from the following file: