![]() |
Essential Kit
|
Builder class for INotification objects. Provides a convenient way to set the various fields of a INotification.
Public Member Functions | |
NotificationBuilder | SetTitle (string value) |
Sets the title property of notification. | |
NotificationBuilder | SetSubtitle (string value) |
Sets the subtitle property of notification. | |
NotificationBuilder | SetBody (string value) |
Sets the body property of notification. | |
NotificationBuilder | SetBadge (int value) |
Sets the badge property of notification. | |
NotificationBuilder | SetUserInfo (Dictionary< string, string > value) |
Sets the custom userinfo property of notification. | |
NotificationBuilder | SetUserInfo (params KeyValuePair< string, string >[] values) |
Sets the custom userinfo property of notification. | |
NotificationBuilder | SetSoundFileName (string value) |
Sets the sound filename property of notification. | |
NotificationBuilder | SetIosProperties (NotificationIosProperties value) |
Sets the iOS specific properties of notification. | |
NotificationBuilder | SetAndroidProperties (NotificationAndroidProperties value) |
Sets the android specific properties of notification. | |
NotificationBuilder | SetTimeIntervalNotificationTrigger (double interval, bool repeats=false) |
Adds the time interval based trigger. | |
NotificationBuilder | SetCalendarNotificationTrigger (DateComponents dateComponent, bool repeats=false) |
Adds the date time based trigger. | |
NotificationBuilder | SetLocationNotificationTrigger (CircularRegion region, bool notifyOnEntry, bool notifyOnExit, bool repeats=false) |
Adds the location based trigger. | |
NotificationBuilder | SetPriority (NotificationPriority priority) |
Sets the priority of notification. | |
INotification | Create () |
Returns newly created IMutableNotification instance. | |
Static Public Member Functions | |
static NotificationBuilder | CreateNotification (string notificationId) |
Initializes a new instance of the NotificationBuilder class. | |
|
static |
notificationId | The unique identifier for this notification. |
Referenced by NotificationServices.CreateNotificationWithId().
NotificationBuilder SetTitle | ( | string | value | ) |
value | Value. |
NotificationBuilder SetSubtitle | ( | string | value | ) |
value | Value. |
NotificationBuilder SetBody | ( | string | value | ) |
value | Value. |
NotificationBuilder SetBadge | ( | int | value | ) |
value | Value. |
NotificationBuilder SetUserInfo | ( | Dictionary< string, string > | value | ) |
value | Value. |
NotificationBuilder SetUserInfo | ( | params KeyValuePair< string, string >[] | values | ) |
values | Key value pair values. |
NotificationBuilder SetSoundFileName | ( | string | value | ) |
value | Value. |
NotificationBuilder SetIosProperties | ( | NotificationIosProperties | value | ) |
value | Value. |
NotificationBuilder SetAndroidProperties | ( | NotificationAndroidProperties | value | ) |
value | Value. |
NotificationBuilder SetTimeIntervalNotificationTrigger | ( | double | interval, |
bool | repeats = false ) |
interval | The time (in seconds) that must elapse from the current time before the trigger fires. |
repeats | If set to true repeats. |
NotificationBuilder SetCalendarNotificationTrigger | ( | DateComponents | dateComponent, |
bool | repeats = false ) |
dateComponent | The time when notification is triggered for first time. |
repeats | If set to true repeats. |
NotificationBuilder SetLocationNotificationTrigger | ( | CircularRegion | region, |
bool | notifyOnEntry, | ||
bool | notifyOnExit, | ||
bool | repeats = false ) |
region | The geographic region that must be entered or exited. |
notifyOnEntry | If set to true notify on entry. |
notifyOnExit | If set to true notify on exit. |
repeats | If set to true repeats. |
NotificationBuilder SetPriority | ( | NotificationPriority | priority | ) |
priority | Value representing the priority of the notification. |