public class CloudNotification extends Object
| Constructor and Description |
|---|
CloudNotification() |
| Modifier and Type | Method and Description |
|---|---|
static void |
off(String channelName,
CloudStringCallback callbackObject)
stop listening to events
|
static void |
on(String channelName,
CloudNotificationCallback callbackObject)
Start listening to events
|
static void |
publish(String channelName,
Object data)
Write data to a channel, any client subscribed to this channel will receive a notification
|
public static void on(String channelName, CloudNotificationCallback callbackObject) throws CloudException
channelName - channel to start listening oncallbackObject - a listener which is called when the event is triggeredCloudExceptionpublic static void publish(String channelName, Object data) throws CloudException
channelName - data - CloudExceptionpublic static void off(String channelName, CloudStringCallback callbackObject) throws CloudException
channelName - channel to stop listening fromcallbackObject - CloudExceptionCopyright © 2016. All rights reserved.