Cross Platform Native Plugins
A true cross platform tool for Unity which provides unique and unified way to access native functionality on mobile platforms.
Classes | Public Member Functions | Public Attributes | Properties | List of all members
CrossPlatformNotification Class Reference

Is a wrapper class that encapsulates details about the notification. More...

Classes

class  AndroidSpecificProperties
 Represents an object that holds notification properties specific to Android platform. More...
 
class  iOSSpecificProperties
 Represents an object that holds notification properties specific to iOS platform. More...
 

Public Member Functions

string GetNotificationID ()
 Returns a string used to uniquely identify the notification. More...
 

Public Attributes

const string kDefaultSoundName = "default.mp3"
 The default system sound. (Read Only) More...
 

Properties

string AlertBody [get, set]
 The message displayed in the notification alert. More...
 
System.DateTime FireDate [get, set]
 The date and time when the system should deliver the notification. More...
 
eNotificationRepeatInterval RepeatInterval [get, set]
 The interval at which the notification has to be rescheduled. More...
 
IDictionary UserInfo [get, set]
 A dictionary for passing custom information to the notified application. More...
 
string SoundName [get, set]
 The name of the sound file to play when an alert is displayed. More...
 
iOSSpecificProperties iOSProperties [get, set]
 The notification properties specific to iOS platform. More...
 
AndroidSpecificProperties AndroidProperties [get, set]
 The notification properties specific to Android platform. More...
 

Detailed Description

Is a wrapper class that encapsulates details about the notification.

Member Function Documentation

string GetNotificationID ( )

Returns a string used to uniquely identify the notification.

Member Data Documentation

const string kDefaultSoundName = "default.mp3"

The default system sound. (Read Only)

Property Documentation

string AlertBody
getset

The message displayed in the notification alert.

System.DateTime FireDate
getset

The date and time when the system should deliver the notification.

eNotificationRepeatInterval RepeatInterval
getset

The interval at which the notification has to be rescheduled.

IDictionary UserInfo
getset

A dictionary for passing custom information to the notified application.

string SoundName
getset

The name of the sound file to play when an alert is displayed.

Note
Specify the filename along with extension, eg: customsound.mp3. And incase if you are using sound other than default, then place the asset under folder Assets/PluginResources.
iOSSpecificProperties iOSProperties
getset

The notification properties specific to iOS platform.

AndroidSpecificProperties AndroidProperties
getset

The notification properties specific to Android platform.