Package 

Class PushBase.DeviceRegistrations

    • Method Detail

      • get

         DeviceDetails get(String deviceId)

        Retrieves the DeviceDetails of a device registered to receive push notifications using its deviceId.

        Spec: RSH1b1

        Parameters:
        deviceId - The unique ID of the device.
      • getAsync

         void getAsync(String deviceId, Callback<DeviceDetails> callback)

        Asynchronously retrieves the DeviceDetails 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 a DeviceDetails object.
      • list

         PaginatedResult<DeviceDetails> list(Array<Param> params)

        Retrieves all devices matching the filter params provided.Returns a PaginatedResult object, containing an array of DeviceDetails 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.
      • remove

         void remove(DeviceDetails device)

        Removes a device registered to receive push notifications from Ably using the id property of a DeviceDetails object.

        Spec: RSH1b4

        Parameters:
        device - The DeviceDetails object containing the id property of the device.
      • removeAsync

         void removeAsync(DeviceDetails device, CompletionListener listener)

        Asynchronously removes a device registered to receive push notifications from Ably using the id property of a DeviceDetails object.

        Spec: RSH1b4

        Parameters:
        device - The DeviceDetails object containing the id property of the device.
        listener - A listener to be notified of success or failure.
      • remove

         void remove(String deviceId)

        Removes a device registered to receive push notifications from Ably using its deviceId.

        Spec: RSH1b4

        Parameters:
        deviceId - The unique ID of the device.
      • removeAsync

         void removeAsync(String deviceId, CompletionListener listener)

        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.
      • removeWhere

         void removeWhere(Array<Param> params)

        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.
      • removeWhereAsync

         void removeWhereAsync(Array<Param> params, CompletionListener listener)

        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.
        listener - A listener to be notified of success or failure.