MessageCollectionHandler class

An interface used in MessageCollection.

Constructors

MessageCollectionHandler()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChannelDeleted(GroupChannelContext context, String deletedChannelUrl) → void
Called when the channel this collection holds is deleted.
onChannelUpdated(GroupChannelContext context, GroupChannel channel) → void
Called when there's a change in the channel this collection holds.
onHugeGapDetected() → void
Called when the collection has detected a huge gap between current message list. When this called, you should call MessageCollection.dispose to remove current collection and create a new collection.
onMessagesAdded(MessageContext context, GroupChannel channel, List<BaseMessage> messages) → void
Called when one or more BaseMessage is added to this collection.
onMessagesDeleted(MessageContext context, GroupChannel channel, List<BaseMessage> messages) → void
Called when one or more BaseMessage is deleted from this collection.
onMessagesUpdated(MessageContext context, GroupChannel channel, List<BaseMessage> messages) → void
Called when one or more BaseMessage is update in this collection.
toString() String
A string representation of this object.
inherited

Operators

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