MessageCollectionDelegate
public protocol MessageCollectionDelegate: AnyObject
Methods that are invoked when the event of the message collection occurs.
Since
3.1.0-
Invoked when the messages are added.
Declaration
Swift
optional func messageCollection( _ collection: MessageCollection, context: MessageContext, channel: GroupChannel, addedMessages: [BaseMessage] )Parameters
collectionMessage collection object.
contextThe reason why the messages are added.
channelThe channel that has the messages.
addedMessagesMessages to be added.
-
Invoked when the message are updated.
Declaration
Swift
optional func messageCollection( _ collection: MessageCollection, context: MessageContext, channel: GroupChannel, updatedMessages: [BaseMessage] )Parameters
collectionMessage collection object.
contextThe reason why the messages are updated.
channelThe channel that has the messages.
updatedMessagesMessages to be updated.
-
Invoked when the message are deleted.
Declaration
Swift
optional func messageCollection( _ collection: MessageCollection, context: MessageContext, channel: GroupChannel, deletedMessages: [BaseMessage] )Parameters
collectionMessage collection object.
contextThe reason why the messages are deleted.
channelThe channel that has the messages.
deletedMessagesMessages to be deleted.
-
Invoked when the channel that has the message collection is changed.
Declaration
Swift
optional func messageCollection( _ collection: MessageCollection, context: MessageContext, updatedChannel: GroupChannel )Parameters
collectionMessage collection object.
contextThe reason why the channel are changed.
updatedChannelThe channel that has the message collection has.
-
Invoked when the channel that has the message collection is deleted.
Declaration
Swift
optional func messageCollection( _ collection: MessageCollection, context: MessageContext, deletedChannel channelURL: String )Parameters
collectionMessage collection object.
contextThe reason why the channel are deleted.
channelURLChannel URL that has been deleted.
-
Invoked when the huge gap has been detected.
Declaration
Swift
optional func didDetectHugeGap(_ collection: MessageCollection)Parameters
collectionMessage collection object.
View on GitHub
Install in Dash