Method ScheduleNotification
ScheduleNotification<T>(Notification, T)
Schedule notification to be shown in the future.
Declaration
public static int ScheduleNotification<T>(Notification notification, T schedule) where T : NotificationSchedule
Parameters
| Type | Name | Description |
|---|---|---|
| Notification | notification | Notification to send. |
| T | schedule | Schedule, specifying, when notification should be shown. |
Returns
| Type | Description |
|---|---|
| int | Notification identifier. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the schedule, usually deduced from actually passed one. |
ScheduleNotification<T>(Notification, string, T)
Schedule notification to be shown in the future. Allows to explicitly specify the category to send notification to. On Android it is notification channel. Channel or category has to be created manually using AndroidNotificationCenter and iOSNotificationCenter respectively.
Declaration
public static int ScheduleNotification<T>(Notification notification, string category, T schedule) where T : NotificationSchedule
Parameters
| Type | Name | Description |
|---|---|---|
| Notification | notification | Notification to send. |
| string | category | Identifier for iOS category or Android channel. |
| T | schedule | Schedule, specifying, when notification should be shown. |
Returns
| Type | Description |
|---|---|
| int | Notification identifier. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the schedule, usually deduced from actually passed one. |