NotificationCollectionDelegate
@objc(SBDNotificationCollectionDelegate)
public protocol NotificationCollectionDelegate
Methods that are invoked when the event of the message collection occurs.
Since
4.6.0-
Invoked when the messages are added.
Declaration
Swift
@objc optional func notificationCollection( _ collection: NotificationCollection, context: NotificationContext, channel: FeedChannel, addedMessages: [BaseMessage] )
Parameters
collection
Message collection object.
context
The reason why the messages are added.
channel
The channel that has the messages.
addedMessages
Messages to be added.
-
Invoked when the message are updated.
Declaration
Swift
@objc optional func notificationCollection( _ collection: NotificationCollection, context: NotificationContext, channel: FeedChannel, updatedMessages: [BaseMessage] )
Parameters
collection
Message collection object.
context
The reason why the messages are updated.
channel
The channel that has the messages.
updatedMessages
Messages to be updated.
-
Invoked when the message are deleted.
Declaration
Swift
@objc optional func notificationCollection( _ collection: NotificationCollection, context: NotificationContext, channel: FeedChannel, deletedMessages: [BaseMessage] )
Parameters
collection
Message collection object.
context
The reason why the messages are deleted.
channel
The channel that has the messages.
deletedMessages
Messages to be deleted.
-
Invoked when the channel that has the message collection is changed.
Declaration
Swift
@objc optional func notificationCollection( _ collection: NotificationCollection, context: FeedChannelContext, updatedChannel: FeedChannel )
Parameters
collection
Message collection object.
context
The reason why the channel are changed.
updatedChannel
The channel that has the message collection has.
-
Invoked when the channel that has the message collection is deleted.
Declaration
Swift
@objc optional func notificationCollection( _ collection: NotificationCollection, context: FeedChannelContext, deletedChannel channelURL: String )
Parameters
collection
Message collection object.
context
The reason why the channel are deleted.
channelURL
Channel URL that has been deleted.
-
Invoked when the huge gap has been detected.
Declaration
Swift
@objc optional func didDetectHugeGap(_ collection: NotificationCollection)
Parameters
collection
Message collection object.