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 theDeviceDetailsof a device registered to receive push notifications using its deviceId.voidgetAsync(String deviceId, Callback<DeviceDetails> callback) Asynchronously retrieves theDeviceDetailsof a device registered to receive push notifications using its deviceId.protected Http.Request<DeviceDetails>Retrieves all devices matching the filter params provided.voidlistAsync(Param[] params, Callback<AsyncPaginatedResult<DeviceDetails>> callback) Asynchronously retrieves all devices matching the filter params provided.protected BasePaginatedQuery.ResultRequest<DeviceDetails>voidremove(DeviceDetails device) Removes a device registered to receive push notifications from Ably using the id property of aDeviceDetailsobject.voidRemoves a device registered to receive push notifications from Ably using its deviceId.voidremoveAsync(DeviceDetails device, CompletionListener listener) Asynchronously removes a device registered to receive push notifications from Ably using the id property of aDeviceDetailsobject.voidremoveAsync(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) voidremoveWhere(Param[] params) Removes all devices registered to receive push notifications from Ably matching the filter params provided.voidremoveWhereAsync(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 aDeviceDetailsobject with Ably.voidsaveAsync(DeviceDetails device, Callback<DeviceDetails> callback) Asynchronously registers or updates aDeviceDetailsobject with Ably.protected Http.Request<DeviceDetails>saveImpl(DeviceDetails device)
-
Method Details
-
save
Registers or updates aDeviceDetailsobject with Ably. Returns the new, or updatedDeviceDetailsobject.Spec: RSH1b3
- Parameters:
-
device- TheDeviceDetailsobject to create or update. - Returns:
- A
DeviceDetailsobject. - Throws:
AblyException
-
saveAsync
Asynchronously registers or updates aDeviceDetailsobject with Ably. Returns the new, or updatedDeviceDetailsobject.Spec: RSH1b3
- Parameters:
-
device- TheDeviceDetailsobject to create or update. -
callback- A callback returning aDeviceDetailsobject.
-
saveImpl
-
get
Retrieves theDeviceDetailsof a device registered to receive push notifications using its deviceId.Spec: RSH1b1
- Parameters:
-
deviceId- The unique ID of the device. - Returns:
- A
DeviceDetailsobject. - Throws:
AblyException
-
getAsync
Asynchronously retrieves theDeviceDetailsof a device registered to receive push notifications using its deviceId.Spec: RSH1b1
- Parameters:
-
deviceId- The unique ID of the device. -
callback- A callback returning aDeviceDetailsobject.
-
getImpl
-
list
Retrieves all devices matching the filter params provided. Returns aPaginatedResultobject, containing an array ofDeviceDetailsobjects.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
PaginatedResultobject containing an array ofDeviceDetailsobjects. - Throws:
AblyException
-
listAsync
Asynchronously retrieves all devices matching the filter params provided. Returns aAsyncPaginatedResultobject, containing an array ofDeviceDetailsobjects.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 aAsyncPaginatedResultobject containing an array ofDeviceDetailsobjects.
-
listImpl
-
remove
Removes a device registered to receive push notifications from Ably using the id property of aDeviceDetailsobject.Spec: RSH1b4
- Parameters:
-
device- TheDeviceDetailsobject 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 aDeviceDetailsobject.Spec: RSH1b4
- Parameters:
-
device- TheDeviceDetailsobject 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
-