|
UTNotifications
1.5
Professional Local & Push Notification Plugin
|
The sample showing how to use different UTNotifications features.
More...
Public Member Functions | |
| void | Start () |
| Shows how you can initialize the UTNotifications More... | |
| void | OnGUI () |
| Draws the sample UI. More... | |
Protected Member Functions | |
| bool | ShowReceivedNotification (bool clicked, int height, int offsetX, int offsetY, int offsetTitle) |
| Shows the received/clicked notification. More... | |
| void | ShowMenu (int height, int offsetX, int offsetY, int offsetTitle) |
| Shows the sample menu. More... | |
| void | Initialize () |
Initialize the Manager. More... | |
| void | CreateLocalNotification () |
| Creates the local notification. More... | |
| void | CreateScheduledNotifications () |
| Creates 2 scheduled notifications: single one and repeating one. More... | |
| void | CancelRepeatingScheduledNotification () |
| Cancels the previously created repeating scheduled notification. More... | |
| void | IncrementBadge () |
| Increments the app icon badge value (iOS only). More... | |
| void | CancelAll () |
| Cancels all the previously created notifications. More... | |
| void | SetNotificationsEnabled (bool enabled) |
| Enables/disables notifications. More... | |
| void | HideNotification (int id) |
| Hides the specified notification. More... | |
| void | HideAll () |
| Hides all the notifications. More... | |
| void | SendRegistrationId (string providerName, string registrationId) |
A wrapper for the SendRegistrationId(string userId, string providerName, string registrationId) coroutine More... | |
| IEnumerator | SendRegistrationId (string userId, string providerName, string registrationId) |
| Sends the received push notifications registrationId to the demo server More... | |
| void | NotifyAll () |
A wrapper for the NotifyAll(string title, string text, string notificationProfile) coroutine. More... | |
| IEnumerator | NotifyAll (string title, string text, string notificationProfile) |
| Requests the demo server to notify all the registered devices with push notifications. More... | |
| void | OnNotificationClicked (ReceivedNotification notification) |
| Handles click on a notification. More... | |
| void | OnNotificationsReceived (IList< ReceivedNotification > receivedNotifications) |
| Handles the received notifications. More... | |
Protected Attributes | |
| string | m_webServerAddress = "" |
Address of the running demo server. You can replace the default value by your demo server address (f.e. "http://192.168.2.102:8080"). More... | |
| const int | LocalNotificationId = 1 |
| const int | ScheduledNotificationId = 2 |
| const int | RepeatingNotificationId = 3 |
The sample showing how to use different UTNotifications features.
|
protected |
Cancels all the previously created notifications.
|
protected |
Cancels the previously created repeating scheduled notification.
|
protected |
Creates the local notification.
|
protected |
Creates 2 scheduled notifications: single one and repeating one.
|
protected |
Hides all the notifications.
|
protected |
Hides the specified notification.
|
protected |
Increments the app icon badge value (iOS only).
|
protected |
Initialize the Manager.
|
protected |
A wrapper for the NotifyAll(string title, string text, string notificationProfile) coroutine.
|
protected |
Requests the demo server to notify all the registered devices with push notifications.
| void UTNotifications.SampleUI.OnGUI | ( | ) |
Draws the sample UI.
|
protected |
Handles click on a notification.
|
protected |
Handles the received notifications.
|
protected |
A wrapper for the SendRegistrationId(string userId, string providerName, string registrationId) coroutine
|
protected |
Sends the received push notifications registrationId to the demo server
|
protected |
Enables/disables notifications.
|
protected |
Shows the sample menu.
|
protected |
Shows the received/clicked notification.
true, if received notification was shown, false otherwise.| void UTNotifications.SampleUI.Start | ( | ) |
Shows how you can initialize the UTNotifications
|
protected |
Address of the running demo server. You can replace the default value by your demo server address (f.e. "http://192.168.2.102:8080").
1.8.10