![]() |
UTNotifications
1.8
Professional Local & Push Notification Plugin
|
Scheduled repeating notification. More...
Public Member Functions | |
ScheduledRepeatingNotification (DateTime triggerDateTime, int intervalSeconds, string title, string text, int id, IDictionary< string, string > userData, string notificationProfile, int badgeNumber, ICollection< Button > buttons) | |
Initializes a new instance of the T:UTNotifications.ScheduledRepeatingNotification class. More... | |
ScheduledRepeatingNotification (DateTime triggerDateTime, int intervalSeconds, string title, string text, int id) | |
Initializes a new instance of the T:UTNotifications.ScheduledRepeatingNotification class. More... | |
ScheduledRepeatingNotification (JSONNode json) | |
Initializes a new instance of the T:UTNotifications.ScheduledRepeatingNotification class. More... | |
override JSONClass | ToJson () |
Converts to a notification json. More... | |
new ScheduledRepeatingNotification | SetUserData (IDictionary< string, string > userData) |
Sets the user data. More... | |
new ScheduledRepeatingNotification | SetNotificationProfile (string notificationProfile) |
Sets the notification profile. More... | |
new ScheduledRepeatingNotification | SetBadgeNumber (int badgeNumber) |
Sets the badge number. More... | |
new ScheduledRepeatingNotification | SetButtons (ICollection< Button > buttons) |
Sets the buttons. More... | |
![]() | |
ScheduledNotification (DateTime triggerDateTime, string title, string text, int id, IDictionary< string, string > userData, string notificationProfile, int badgeNumber, ICollection< Button > buttons) | |
Initializes a new instance of the T:UTNotifications.ScheduledNotification class. More... | |
ScheduledNotification (DateTime triggerDateTime, string title, string text, int id) | |
Initializes a new instance of the T:UTNotifications.ScheduledNotification class. More... | |
ScheduledNotification (JSONNode json) | |
Initializes a new instance of the T:UTNotifications.ScheduledNotification class. More... | |
new ScheduledNotification | SetUserData (IDictionary< string, string > userData) |
Sets the user data. More... | |
new ScheduledNotification | SetNotificationProfile (string notificationProfile) |
Sets the notification profile. More... | |
new ScheduledNotification | SetBadgeNumber (int badgeNumber) |
Sets the badge number. More... | |
new ScheduledNotification | SetButtons (ICollection< Button > buttons) |
Sets the buttons. More... | |
![]() | |
LocalNotification (string title, string text, int id, IDictionary< string, string > userData, string notificationProfile, int badgeNumber, ICollection< Button > buttons) | |
Initializes a new instance of the T:UTNotifications.LocalNotification class. More... | |
LocalNotification (string title, string text, int id) | |
Initializes a new instance of the T:UTNotifications.LocalNotification class. More... | |
LocalNotification (JSONNode json) | |
Initializes a new instance of the T:UTNotifications.LocalNotification class. More... | |
new LocalNotification | SetUserData (IDictionary< string, string > userData) |
Sets the user data. More... | |
new LocalNotification | SetNotificationProfile (string notificationProfile) |
Sets the notification profile. More... | |
new LocalNotification | SetBadgeNumber (int badgeNumber) |
Sets the badge number. More... | |
new LocalNotification | SetButtons (ICollection< Button > buttons) |
this. More... | |
![]() | |
Notification (string title, string text, int id) | |
Initializes a new instance of the T:UTNotifications.Notification class. More... | |
Notification (string title, string text, int id, IDictionary< string, string > userData, string notificationProfile, int badgeNumber, ICollection< Button > buttons) | |
Initializes a new instance of the T:UTNotifications.Notification class. More... | |
Notification (JSONNode json) | |
Initializes a new instance of the T:UTNotifications.Notification class. More... | |
Notification | SetUserData (IDictionary< string, string > userData) |
Sets the user data. More... | |
Notification | SetNotificationProfile (string notificationProfile) |
Sets the notification profile. More... | |
Notification | SetBadgeNumber (int badgeNumber) |
Sets the badge number. More... | |
Notification | SetButtons (ICollection< Button > buttons) |
Sets the buttons. More... | |
override string | ToString () |
Returns a T:System.String that represents the current T:UTNotifications.Notification. More... | |
Public Attributes | |
readonly int | intervalSeconds |
The interval repeating interval in seconds. More... | |
![]() | |
readonly DateTime | triggerDateTime |
Date time (in device local time zone) the notification is scheduled for / was shown. More... | |
![]() | |
const int | BADGE_NOT_SPECIFIED = -1 |
Use instead of a badge number to keep the previous badge number. More... | |
readonly string | title |
The title. More... | |
readonly string | text |
The text. More... | |
readonly int | id |
The id. More... | |
Properties | |
override bool | IsRepeating [get] |
Gets a value indicating whether this T:UTNotifications.ScheduledRepeatingNotification is repeating (i.e. intervalSeconds > 0). More... | |
![]() | |
virtual bool | IsRepeating [get] |
Gets a value indicating whether this T:UTNotifications.ScheduledNotification is repeating. More... | |
![]() | |
IDictionary< string, string > | userData [get] |
The user data provided by you in Manager.PostLocalNotification , Manager.ScheduleNotification or Manager.ScheduleNotificationRepeating or by your server in a push notification payload. More... | |
string | notificationProfile [get] |
The name of the notification profile (sound, icon and other notification attributes). More... | |
int | badgeNumber [get] |
The badge number (default value is BADGE_NOT_SPECIFIED). More... | |
ICollection< Button > | buttons [get] |
Notification buttons (when supported by the platform). More... | |
Additional Inherited Members | |
![]() | |
static Notification | FromJson (JSONNode json) |
Factory method to create a T:UTNotifications.Notification object from a notification json. More... | |
Scheduled repeating notification.
UTNotifications.ScheduledRepeatingNotification.ScheduledRepeatingNotification | ( | DateTime | triggerDateTime, |
int | intervalSeconds, | ||
string | title, | ||
string | text, | ||
int | id, | ||
IDictionary< string, string > | userData, | ||
string | notificationProfile, | ||
int | badgeNumber, | ||
ICollection< Button > | buttons | ||
) |
Initializes a new instance of the T:UTNotifications.ScheduledRepeatingNotification class.
triggerDateTime | Date time (in device local time zone) the notification is scheduled for / was shown the first time. |
intervalSeconds | Interval seconds. |
title | Title. |
text | Text. |
id | Id. |
userData | User data (optional). |
notificationProfile | Notification profile (optional). |
badgeNumber | Badge number. |
buttons | Buttons (optional). |
UTNotifications.ScheduledRepeatingNotification.ScheduledRepeatingNotification | ( | DateTime | triggerDateTime, |
int | intervalSeconds, | ||
string | title, | ||
string | text, | ||
int | id | ||
) |
Initializes a new instance of the T:UTNotifications.ScheduledRepeatingNotification class.
triggerDateTime | Date time (in device local time zone) the notification is scheduled for / was shown the first time. |
intervalSeconds | Interval seconds. |
title | Title. |
text | Text. |
id | Id. |
UTNotifications.ScheduledRepeatingNotification.ScheduledRepeatingNotification | ( | JSONNode | json | ) |
Initializes a new instance of the T:UTNotifications.ScheduledRepeatingNotification class.
json | Notification json. |
new ScheduledRepeatingNotification UTNotifications.ScheduledRepeatingNotification.SetBadgeNumber | ( | int | badgeNumber | ) |
Sets the badge number.
badgeNumber | Badge number. |
new ScheduledRepeatingNotification UTNotifications.ScheduledRepeatingNotification.SetButtons | ( | ICollection< Button > | buttons | ) |
Sets the buttons.
buttons | Buttons. |
new ScheduledRepeatingNotification UTNotifications.ScheduledRepeatingNotification.SetNotificationProfile | ( | string | notificationProfile | ) |
new ScheduledRepeatingNotification UTNotifications.ScheduledRepeatingNotification.SetUserData | ( | IDictionary< string, string > | userData | ) |
Sets the user data.
userData | User data. |
|
virtual |
Converts to a notification json.
Reimplemented from UTNotifications.ScheduledNotification.
readonly int UTNotifications.ScheduledRepeatingNotification.intervalSeconds |
The interval repeating interval in seconds.
Please note that the actual interval may be different. On iOS there are only fixed options like every minute, every day, every week and so on. So the provided intervalSeconds
value will be approximated by one of the available options.
|
get |
Gets a value indicating whether this T:UTNotifications.ScheduledRepeatingNotification is repeating (i.e. intervalSeconds > 0).
true
if is repeating; otherwise, false
.