NotificationCollectionDelegate
public protocol NotificationCollectionDelegate: AnyObject
Methods that are invoked when the event of the message collection occurs.
Since
4.6.0-
Invoked when the messages are added.
Declaration
Swift
optional func notificationCollection( _ collection: NotificationCollection, context: NotificationContext, channel: FeedChannel, 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 notificationCollection( _ collection: NotificationCollection, context: NotificationContext, channel: FeedChannel, 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 notificationCollection( _ collection: NotificationCollection, context: NotificationContext, channel: FeedChannel, 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 notificationCollection( _ collection: NotificationCollection, context: FeedChannelContext, updatedChannel: FeedChannel )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 notificationCollection( _ collection: NotificationCollection, context: FeedChannelContext, 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: NotificationCollection)Parameters
collectionMessage collection object.
View on GitHub
Install in Dash