public class CppManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
CppManager.NotificationFromCpp |
| Modifier and Type | Method and Description |
|---|---|
void |
addMainObserver(Observer observer,
java.lang.String notificationName) |
void |
addObserver(Observer observer,
java.lang.String notificationName) |
void |
cancelNotification(Notification notification) |
void |
cancelNotificationByID(int id) |
void |
cancelNotificationWithinThisCenter(Notification notification)
This will not call C++ code
|
static CppManager |
getDefaultCenter() |
Observer |
getMainObserverByNotificationName(java.lang.String notificationName) |
org.json.JSONObject |
postNotification(Notification notification) |
void |
postNotificationAsync(Notification notification) |
Value |
postNotificationV2(Notification notification) |
org.json.JSONObject |
postNotificationWithinThisCenter(Notification notification)
This notification will not be posted to C++ code
|
void |
removeNotificationByID(int id) |
void |
removeObserver(Observer observer,
java.lang.String notificationName) |
void |
setSDKConfig(org.json.JSONObject config) |
public static CppManager getDefaultCenter()
public void setSDKConfig(org.json.JSONObject config)
public org.json.JSONObject postNotification(Notification notification)
notification - the notification postedpublic Value postNotificationV2(Notification notification)
notification - the notification postedpublic void postNotificationAsync(Notification notification)
notification - the notification postedpublic void cancelNotification(Notification notification)
notification - the notification that needs to be canceledpublic void cancelNotificationByID(int id)
id - the id of the notification that needs to be canceledpublic void removeNotificationByID(int id)
public org.json.JSONObject postNotificationWithinThisCenter(Notification notification)
notification - the notification postedpublic void cancelNotificationWithinThisCenter(Notification notification)
notification - the notification to be canceledpublic void addObserver(Observer observer,
java.lang.String notificationName)
observer - notificationName - public void addMainObserver(Observer observer,
java.lang.String notificationName)
observer - notificationName - public void removeObserver(Observer observer,
java.lang.String notificationName)
observer - notificationName - public Observer getMainObserverByNotificationName(java.lang.String notificationName)
notificationName -