public static class PushBase.Admin
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
PushBase.ChannelSubscriptions |
channelSubscriptions
A
PushBase.ChannelSubscriptions object. |
PushBase.DeviceRegistrations |
deviceRegistrations
A
PushBase.DeviceRegistrations object. |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(Param[] recipient,
com.google.gson.JsonObject payload)
Sends a push notification directly to a device, or a group of devices sharing the same clientId.
|
void |
publishAsync(Param[] recipient,
com.google.gson.JsonObject payload,
CompletionListener listener)
Asynchronously sends a push notification directly to a device, or a group of devices sharing the same clientId.
|
public final PushBase.DeviceRegistrations deviceRegistrations
PushBase.DeviceRegistrations object.
Spec: RSH1b
public final PushBase.ChannelSubscriptions channelSubscriptions
PushBase.ChannelSubscriptions object.
Spec: RSH1c
public void publish(Param[] recipient, com.google.gson.JsonObject payload) throws AblyException
Spec: RSH1a
recipient - A JSON object containing the recipient details using clientId, deviceId or the underlying notifications service.payload - A JSON object containing the push notification payload.AblyExceptionpublic void publishAsync(Param[] recipient, com.google.gson.JsonObject payload, CompletionListener listener)
Spec: RSH1a
recipient - A JSON object containing the recipient details using clientId, deviceId or the underlying notifications service.payload - A JSON object containing the push notification payload.listener - A listener to be notified of success or failure.
This listener is invoked on a background thread.
AblyException