Notification SDK Server  4.34.0
The Notification SDK Server provides a library to send notification to various devices (iOS and Android)
Notification Class Reference

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. More...

Public Member Functions

 Notification (string title, string subject, string content)
 Creates a Notification object from its mandatory attributes. More...
 

Properties

int TrackingIdentifier [get, set]
 Tracking identifier used to differentiate the notifications in the error/success callbacks. More...
 
string Content [get, set]
 Content of the notification. More...
 
string Title [get, set]
 Title of the notification. More...
 
string Subject [get, set]
 Subject of the notification. More...
 
int IOSBadge [get, set]
 (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). More...
 
bool AndroidHeadsUp [get, set]
 (Android only).
Sets the android notification to be heads-up.
True, if the notification is heads-up. More...
 
bool HighPriority [get, set]
 (Android only).
Sets the priority of the message.
True, if the notification is high priority. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Notification()

Notification ( string  title,
string  subject,
string  content 
)
inline

Creates a Notification object from its mandatory attributes.

Parameters
titleText to be displayed as title of the notification. Must not be null.
On iOS, the title must not contain any '\n' character.
subjectText to be displayed as subject of the notification. Must not be null.
contentText 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.

Property Documentation

◆ AndroidHeadsUp

bool AndroidHeadsUp
getset

(Android only).
Sets the android notification to be heads-up.
True, if the notification is heads-up.

◆ Content

string Content
getset

Content of the notification.

◆ HighPriority

bool HighPriority
getset

(Android only).
Sets the priority of the message.
True, if the notification is high priority.

◆ IOSBadge

int IOSBadge
getset

(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

string Subject
getset

Subject of the notification.

◆ Title

string Title
getset

Title of the notification.

◆ TrackingIdentifier

int TrackingIdentifier
getset

Tracking identifier used to differentiate the notifications in the error/success callbacks.


The documentation for this class was generated from the following file: