HotlineSubscriptionManager class
Manages the subscriptions for a connection
Constructors
- HotlineSubscriptionManager(Hotline connection)
Properties
- connection ↔ Hotline
-
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
-
subscriptions
→ List<
HotlineSubscription> -
no setter
Methods
-
confirmSubscription(
String identifier) → void -
called when our
confirmed
callback is triggered by a 'confirm_subscription' event -
create(
dynamic channel, {Function? onReceived, Function? onConfirmed, Function? onUnsubscribed, Function? onRejected}) → HotlineSubscription -
Create a new subscription to a channel, using a dynamic
channel
type to allow for simple String subscriptions or complex channels with parameters. -
getAllSubscriptions(
String identifier) → List< HotlineSubscription> -
return a list of all subscriptions that match a given
identifier
-
getSubscription(
String identifier) → HotlineSubscription? - Find a subscription from the collection by looking up its identifier
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
suspendAll(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
HotlineSubscription subscription) → void - Unsubscribe from the messaging for a given channel
-
unsuspendAll(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int i) → HotlineSubscription -
allow for
hotline.consumer.subscriptions[0]