Package io.ably.lib.push
Class PushBase.Admin
- java.lang.Object
-
- io.ably.lib.push.PushBase.Admin
-
- Enclosing class:
- PushBase
public static class PushBase.Admin extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description PushBase.ChannelSubscriptionschannelSubscriptionsAPushBase.ChannelSubscriptionsobject.PushBase.DeviceRegistrationsdeviceRegistrationsAPushBase.DeviceRegistrationsobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpublish(Param[] recipient, com.google.gson.JsonObject payload)Sends a push notification directly to a device, or a group of devices sharing the same clientId.voidpublishAsync(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.
-
-
-
Field Detail
-
deviceRegistrations
public final PushBase.DeviceRegistrations deviceRegistrations
APushBase.DeviceRegistrationsobject.Spec: RSH1b
-
channelSubscriptions
public final PushBase.ChannelSubscriptions channelSubscriptions
APushBase.ChannelSubscriptionsobject.Spec: RSH1c
-
-
Method Detail
-
publish
public void publish(Param[] recipient, com.google.gson.JsonObject payload) throws AblyException
Sends a push notification directly to a device, or a group of devices sharing the same clientId.Spec: RSH1a
- Parameters:
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.- Throws:
AblyException
-
publishAsync
public 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.Spec: RSH1a
- Parameters:
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.
- Throws:
AblyException
-
-