PushDeviceRegistrations class abstract
Enables the management of push notification registrations with Ably.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
{DeviceDetails? deviceDetails, String? deviceId}) → Future< DeviceDetails> -
Retrieves the
DeviceDetails
of a device registered to receive push notifications using theid
property of aDeviceDetails
object, or by directly using the uniquedeviceId
. -
list(
DeviceRegistrationParams params) → Future< PaginatedResult< DeviceDetails> > -
Retrieves all devices matching the filter
params
provided. Returns aPaginatedResult
object, containing an array of DeviceDetails objects. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
{DeviceDetails? deviceDetails, String? deviceId}) → Future< void> -
Removes a device registered to receive push notifications from Ably using
the id property of a
deviceDetails
object, or by directly using the uniquedeviceId
. -
removeWhere(
DeviceRegistrationParams params) → Future< void> -
Removes all devices registered to receive push notifications from Ably
matching the filter
params
provided. -
save(
DeviceDetails deviceDetails) → Future< DeviceDetails> -
Registers or updates a
deviceDetails
object with Ably. Returns the new, or updatedDeviceDetails
object. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited