public class KiiPushUnityPlugin
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static KiiPushUnityPlugin |
getInstance()
Get instance of KiiPushUnityPlugin.
|
java.lang.String |
getLastMessage()
Get the last push message.
|
java.lang.String |
getListenerGameObjectName()
Get game objectname which is bound the this code.
|
void |
getRegistrationID()
Register the application for GCM and return the registration ID by UnitySendMessage.
|
java.lang.String |
getSenderId()
Get sender id.
|
SharedPreferences |
getSharedPreference(Context context)
Get the android SharedPreferences.
|
void |
sendPushNotification(Context context,
java.lang.String message)
Send a push notification to the Unity layer.
|
void |
setListenerGameObjectName(java.lang.String listenerGameObjectName)
Set game objectname which is bound the this code.
|
void |
setSenderId(java.lang.String senderId)
Set sender id.
|
void |
unregisterGCM()
Unregister the application.
|
public static KiiPushUnityPlugin getInstance()
public java.lang.String getLastMessage()
public java.lang.String getListenerGameObjectName()
public void getRegistrationID()
public java.lang.String getSenderId()
public SharedPreferences getSharedPreference(Context context)
context
- public void sendPushNotification(Context context, java.lang.String message)
context
- message
- public void setListenerGameObjectName(java.lang.String listenerGameObjectName)
listenerGameObjectName
- public void setSenderId(java.lang.String senderId)
senderId
- public void unregisterGCM() throws java.io.IOException
java.io.IOException