UTNotifications  1.5
Professional Local & Push Notification Plugin
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
UTNotifications.SampleUI Class Reference

The sample showing how to use different UTNotifications features. More...

Inheritance diagram for UTNotifications.SampleUI:

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
 

Detailed Description

The sample showing how to use different UTNotifications features.

Member Function Documentation

void UTNotifications.SampleUI.CancelAll ( )
protected

Cancels all the previously created notifications.

void UTNotifications.SampleUI.CancelRepeatingScheduledNotification ( )
protected

Cancels the previously created repeating scheduled notification.

void UTNotifications.SampleUI.CreateLocalNotification ( )
protected

Creates the local notification.

void UTNotifications.SampleUI.CreateScheduledNotifications ( )
protected

Creates 2 scheduled notifications: single one and repeating one.

void UTNotifications.SampleUI.HideAll ( )
protected

Hides all the notifications.

void UTNotifications.SampleUI.HideNotification ( int  id)
protected

Hides the specified notification.

void UTNotifications.SampleUI.IncrementBadge ( )
protected

Increments the app icon badge value (iOS only).

void UTNotifications.SampleUI.Initialize ( )
protected

Initialize the Manager.

void UTNotifications.SampleUI.NotifyAll ( )
protected
IEnumerator UTNotifications.SampleUI.NotifyAll ( string  title,
string  text,
string  notificationProfile 
)
protected

Requests the demo server to notify all the registered devices with push notifications.

void UTNotifications.SampleUI.OnGUI ( )

Draws the sample UI.

void UTNotifications.SampleUI.OnNotificationClicked ( ReceivedNotification  notification)
protected

Handles click on a notification.

void UTNotifications.SampleUI.OnNotificationsReceived ( IList< ReceivedNotification receivedNotifications)
protected

Handles the received notifications.

void UTNotifications.SampleUI.SendRegistrationId ( string  providerName,
string  registrationId 
)
protected
IEnumerator UTNotifications.SampleUI.SendRegistrationId ( string  userId,
string  providerName,
string  registrationId 
)
protected

Sends the received push notifications registrationId to the demo server

void UTNotifications.SampleUI.SetNotificationsEnabled ( bool  enabled)
protected

Enables/disables notifications.

void UTNotifications.SampleUI.ShowMenu ( int  height,
int  offsetX,
int  offsetY,
int  offsetTitle 
)
protected

Shows the sample menu.

bool UTNotifications.SampleUI.ShowReceivedNotification ( bool  clicked,
int  height,
int  offsetX,
int  offsetY,
int  offsetTitle 
)
protected

Shows the received/clicked notification.

Returns
true, if received notification was shown, false otherwise.
void UTNotifications.SampleUI.Start ( )

Shows how you can initialize the UTNotifications

Member Data Documentation

string UTNotifications.SampleUI.m_webServerAddress = ""
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").


The documentation for this class was generated from the following file: