Device class

Represents a device used in push endpoints.

Constructors

Device(PubNub _core, Keyset _keyset, String deviceId)

Properties

deviceId String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deregisterFromChannels(Set<String> channels, PushGateway gateway, {String? topic, Environment? environment}) Future<RemovePushChannelsResult>
Use this method to deregister the device deviceId from recieve push notifications for channels Provide apropriate value of push service backend gateway
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerToChannels(Set<String> channels, PushGateway gateway, {String? topic, Environment? environment}) Future<AddPushChannelsResult>
Use this method register the device deviceId to recieve push notifications from channels Provide apropriate value of push service backend gateway
remove(PushGateway gateway, {String? topic, Environment? environment}) Future<RemoveDeviceResult>
Use this method to deregister the device deviceId from all push notification channels This method is allowing for removal of all registered channels at once, for a given device, without specifying all of the channels Provide apropriate value of push service backend gateway
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited