![]() |
Essential Kit
|
Provides cross-platform interface for scheduling, registering and handling notifications.
Static Public Member Functions | |
static void | RequestPermission (NotificationPermissionOptions options, bool showPrepermissionDialog=true, EventCallback< NotificationServicesRequestPermissionResult > callback=null) |
Requests for permission to interact with the user when local and remote notifications are delivered to the user's device. | |
static void | GetSettings (Callback< NotificationServicesGetSettingsResult > callback=null) |
Gets the notification settings available for this application. | |
static NotificationBuilder | CreateNotificationWithId (string notificationId) |
Creates a new instance of local notification. | |
static void | ScheduleNotification (INotification notification, CompletionCallback callback=null) |
Schedules a local notification for delivery. | |
static void | GetScheduledNotifications (EventCallback< NotificationServicesGetScheduledNotificationsResult > callback=null) |
Returns a list of all notification requests that are scheduled and waiting to be delivered. | |
static void | CancelScheduledNotification (string notificationId) |
Unschedules the specified notification. | |
static void | CancelScheduledNotification (INotification notification) |
Unschedules the specified notification. | |
static void | CancelAllScheduledNotifications () |
Unschedules all pending notification requests. | |
static void | GetDeliveredNotifications (EventCallback< NotificationServicesGetDeliveredNotificationsResult > callback=null) |
Returns a list of the app’s notifications that are still displayed in Notification Center. | |
static void | RemoveAllDeliveredNotifications () |
Removes all of the app’s delivered notifications from Notification Center. | |
static void | RegisterForPushNotifications (EventCallback< NotificationServicesRegisterForPushNotificationsResult > callback=null) |
Registers to receive remote notifications via Push Notification service. | |
static void | UnregisterForPushNotifications () |
Unregister for all remote notifications received via Push Notification service. | |
static bool | IsRegisteredForPushNotifications () |
Returns the registeration status for remote notifications. | |
static void | SetApplicationIconBadgeNumber (int count) |
Set application icon badge number. | |
Advanced Usage | |
static void | Initialize (NotificationServicesUnitySettings settings) |
Initializes the notification services module with the given settings. This call is optional and only need to be called if you have custom settings to initialize this feature. | |
Properties | |
static INotification[] | ScheduledNotifications [get] |
Returns the cached scheduled notification array. | |
|
static |
options | The authorization options your app is requesting. You may combine the available constants to request authorization for multiple items. |
showPrepermissionDialog | Indicates whether pre-confirmation is required, before prompting system permission dialog. |
callback | Callback method that will be invoked after operation is completed. |
|
static |
callback | Callback method that will be invoked after operation is completed. |
|
static |
notificationId | Notification identifier. |
References NotificationBuilder.CreateNotification().
|
static |
notification | Notification. |
callback | Callback method that will be invoked after operation is completed. |
|
static |
callback | Callback method that will be invoked after operation is completed. |
References NotificationServices.ScheduledNotifications.
|
static |
notificationId | Notification id. |
|
static |
notification | Notification. |
References INotification.Id.
|
static |
callback | Callback method that will be invoked after operation is completed. |
|
static |
Call this method to initiate the registration process with Push Notification service. When registration process completes, callback is fired. If registration succeeds, then you should pass device token to the server you use to generate remote notifications.
callback | Callback method that will be invoked after operation is completed. |
|
static |
|
static |
true
, if registered for remote notifications, false
otherwise.
|
static |
|
staticget |
Referenced by NotificationServices.GetScheduledNotifications(), and NotificationServices.Initialize().