Package io.ably.lib.push
Class PushBase.DeviceRegistrations
java.lang.Object
io.ably.lib.push.PushBase.DeviceRegistrations
- Enclosing class:
- PushBase
Enables the management of push notification registrations with Ably.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves theDeviceDetails
of a device registered to receive push notifications using its deviceId.void
getAsync
(String deviceId, Callback<DeviceDetails> callback) Asynchronously retrieves theDeviceDetails
of a device registered to receive push notifications using its deviceId.protected Http.Request<DeviceDetails>
Retrieves all devices matching the filter params provided.void
listAsync
(Param[] params, Callback<AsyncPaginatedResult<DeviceDetails>> callback) Asynchronously retrieves all devices matching the filter params provided.protected BasePaginatedQuery.ResultRequest<DeviceDetails>
void
remove
(DeviceDetails device) Removes a device registered to receive push notifications from Ably using the id property of aDeviceDetails
object.void
Removes a device registered to receive push notifications from Ably using its deviceId.void
removeAsync
(DeviceDetails device, CompletionListener listener) Asynchronously removes a device registered to receive push notifications from Ably using the id property of aDeviceDetails
object.void
removeAsync
(String deviceId, CompletionListener listener) Asynchronously removes a device registered to receive push notifications from Ably using its deviceId.protected Http.Request<Void>
removeImpl
(String deviceId) void
removeWhere
(Param[] params) Removes all devices registered to receive push notifications from Ably matching the filter params provided.void
removeWhereAsync
(Param[] params, CompletionListener listener) Removes all devices registered to receive push notifications from Ably matching the filter params provided.protected Http.Request<Void>
removeWhereImpl
(Param[] params) save
(DeviceDetails device) Registers or updates aDeviceDetails
object with Ably.void
saveAsync
(DeviceDetails device, Callback<DeviceDetails> callback) Asynchronously registers or updates aDeviceDetails
object with Ably.protected Http.Request<DeviceDetails>
saveImpl
(DeviceDetails device)
-
Method Details
-
save
Registers or updates aDeviceDetails
object with Ably. Returns the new, or updatedDeviceDetails
object.Spec: RSH1b3
- Parameters:
-
device
- TheDeviceDetails
object to create or update. - Returns:
- A
DeviceDetails
object. - Throws:
AblyException
-
saveAsync
Asynchronously registers or updates aDeviceDetails
object with Ably. Returns the new, or updatedDeviceDetails
object.Spec: RSH1b3
- Parameters:
-
device
- TheDeviceDetails
object to create or update. -
callback
- A callback returning aDeviceDetails
object.
-
saveImpl
-
get
Retrieves theDeviceDetails
of a device registered to receive push notifications using its deviceId.Spec: RSH1b1
- Parameters:
-
deviceId
- The unique ID of the device. - Returns:
- A
DeviceDetails
object. - Throws:
AblyException
-
getAsync
Asynchronously retrieves theDeviceDetails
of a device registered to receive push notifications using its deviceId.Spec: RSH1b1
- Parameters:
-
deviceId
- The unique ID of the device. -
callback
- A callback returning aDeviceDetails
object.
-
getImpl
-
list
Retrieves all devices matching the filter params provided. Returns aPaginatedResult
object, containing an array ofDeviceDetails
objects.Spec: RSH1b2
- Parameters:
-
params
- An object containing key-value pairs to filter devices by. Can contain clientId, deviceId and a limit on the number of devices returned, up to 1,000. - Returns:
- A
PaginatedResult
object containing an array ofDeviceDetails
objects. - Throws:
AblyException
-
listAsync
Asynchronously retrieves all devices matching the filter params provided. Returns aAsyncPaginatedResult
object, containing an array ofDeviceDetails
objects.Spec: RSH1b2
- Parameters:
-
params
- An object containing key-value pairs to filter devices by. Can contain clientId, deviceId and a limit on the number of devices returned, up to 1,000. -
callback
- A callback returning aAsyncPaginatedResult
object containing an array ofDeviceDetails
objects.
-
listImpl
-
remove
Removes a device registered to receive push notifications from Ably using the id property of aDeviceDetails
object.Spec: RSH1b4
- Parameters:
-
device
- TheDeviceDetails
object containing the id property of the device. - Throws:
AblyException
-
removeAsync
Asynchronously removes a device registered to receive push notifications from Ably using the id property of aDeviceDetails
object.Spec: RSH1b4
- Parameters:
-
device
- TheDeviceDetails
object containing the id property of the device. -
listener
- A listener to be notified of success or failure.
-
remove
Removes a device registered to receive push notifications from Ably using its deviceId.Spec: RSH1b4
- Parameters:
-
deviceId
- The unique ID of the device. - Throws:
AblyException
-
removeAsync
Asynchronously removes a device registered to receive push notifications from Ably using its deviceId.Spec: RSH1b4
- Parameters:
-
deviceId
- The unique ID of the device. -
listener
- A listener to be notified of success or failure.
-
removeImpl
-
removeWhere
Removes all devices registered to receive push notifications from Ably matching the filter params provided.Spec: RSH1b5
- Parameters:
-
params
- An object containing key-value pairs to filter devices by. Can contain clientId and deviceId. - Throws:
AblyException
-
removeWhereAsync
Removes all devices registered to receive push notifications from Ably matching the filter params provided.Spec: RSH1b5
- Parameters:
-
params
- An object containing key-value pairs to filter devices by. Can contain clientId and deviceId. -
listener
- A listener to be notified of success or failure.
-
removeWhereImpl
-