GroupChannelCollection
open class GroupChannelCollection: BaseCollection
extension GroupChannelCollection: GroupChannelDelegate
extension GroupChannelCollection: ConnectionDelegate
An object that accesses the cache for the group channels.
Since
3.1.0-
The channels that the collection has fetched.
Declaration
Swift
open var channelList: [GroupChannel]
-
If
true
, the next page might exist.Declaration
Swift
open private(set) var hasNext: Bool
-
Group channel list query
Declaration
Swift
open internal(set) var query: GroupChannelListQuery
-
Collection delegate.
Declaration
Swift
open weak var delegate: GroupChannelCollectionDelegate?
-
Represents that the collection is going to display the real-time messages.
Declaration
Swift
open private(set) var isLive: Bool = true
-
Token for channel change log.
Declaration
Swift
open private(set) var changelogsToken: String?
-
Default timestamp for group channel change logs.
Declaration
Swift
open private(set) var defaultTs: Int64 = 0
-
Represents the collection needs to fetch more data to satisfy query limit
Declaration
Swift
open private(set) var needMoreData: Bool = false
-
Loads next page.
Declaration
Swift
open func loadMore(completionHandler: @escaping GroupChannelListHandler)
Parameters
completionHandler
The completion handler to be executed.
-
Invalidates the object.
Declaration
Swift
open func dispose()
-
Declaration
Swift
open func channel(_ channel: BaseChannel, didReceiveMention message: BaseMessage)
-
Declaration
Swift
open func channelWasChanged(_ channel: BaseChannel)
-
Declaration
Swift
open func channel(_ channel: GroupChannel, didReceiveInvitation invitees: [User]?, inviter: User?)
-
Declaration
Swift
open func channel(_ channel: GroupChannel, didDeclineInvitation invitee: User, inviter: User?)
-
Declaration
Swift
open func channelDidUpdateDeliveryStatus(_ channel: GroupChannel)
-
Declaration
Swift
open func channelDidUpdateReadStatus(_ channel: GroupChannel)
-
Declaration
Swift
open func channelDidChangeMemberCount(_ channels: [GroupChannel])
-
Declaration
Swift
open func channel(_ channel: BaseChannel, userWasMuted user: RestrictedUser)
-
Declaration
Swift
open func channel(_ channel: BaseChannel, userWasUnmuted user: User)
-
Declaration
Swift
open func channelWasFrozen(_ channel: BaseChannel)
-
Declaration
Swift
open func channelWasUnfrozen(_ channel: BaseChannel)
-
Declaration
Swift
open func channelWasHidden(_ channel: GroupChannel)
-
Declaration
Swift
open func channelDidUpdateOperators(_ channel: BaseChannel)
-
Declaration
Swift
open func channelDidUpdateTypingStatus(_ channel: GroupChannel)
-
Declaration
Swift
open func channel(_ channel: GroupChannel, userDidLeave user: User)
-
Declaration
Swift
open func channel(_ channel: GroupChannel, userDidJoin user: User)
-
Declaration
Swift
open func channel(_ channel: BaseChannel, userWasBanned user: RestrictedUser)
-
Declaration
Swift
open func channel(_ channel: BaseChannel, userWasUnbanned user: User)
-
Declaration
Swift
open func channelWasDeleted(_ channelURL: String, channelType: ChannelType)
-
Declaration
Swift
open func channel(_ channel: BaseChannel, createdMetaData: [String: String]?)
-
Declaration
Swift
open func channel(_ channel: BaseChannel, updatedMetaData: [String: String]?)
-
Declaration
Swift
open func channel(_ channel: BaseChannel, deletedMetaDataKeys: [String]?)
-
Declaration
Swift
open func channel(_ channel: BaseChannel, createdMetaCounters: [String: Int]?)
-
Declaration
Swift
open func channel(_ channel: BaseChannel, updatedMetaCounters: [String: Int]?)
-
Declaration
Swift
open func channel(_ channel: BaseChannel, deletedMetaCountersKeys: [String]?)
-
Declaration
Swift
open func channelDidUpdatePinnedMessages(_ channel: GroupChannel)
-
Declaration
Swift
open func channel(_ channel: GroupChannel, didUpdateFeedbackMessage message: BaseMessage)
-
Declaration
Swift
open func didSucceedReconnection()
-
Declaration
Swift
open func didConnect(userId: String)