GroupChannelCollection

@objc(SBDGroupChannelCollection)
public 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

    @objc
    public var channelList: [GroupChannel] { get }
  • If true, the next page might exist.

    Declaration

    Swift

    @objc
    public internal(set) var hasNext: Bool { get }
  • Group channel list query

    Declaration

    Swift

    @objc
    public internal(set) var query: GroupChannelListQuery { get }
  • Collection delegate.

    Declaration

    Swift

    @objc
    public weak var delegate: GroupChannelCollectionDelegate? { get set }
  • Represents that the collection is going to display the real-time messages.

    Declaration

    Swift

    @objc
    public private(set) var isLive: Bool { get }
  • Token for channel change log.

    Declaration

    Swift

    @objc
    public private(set) var changelogsToken: String? { get }
  • Default timestamp for group channel change logs.

    Declaration

    Swift

    @objc
    public private(set) var defaultTs: Int64 { get }
  • Represents the collection needs to fetch more data to satisfy query limit

    Declaration

    Swift

    @objc
    public private(set) var needMoreData: Bool { get }
  • Loads next page.

    Declaration

    Swift

    @objc
    public func loadMore(completionHandler: @escaping GroupChannelListHandler)

    Parameters

    completionHandler

    The completion handler to be executed.

  • Invalidates the object.

    Declaration

    Swift

    @objc
    public func dispose()

ChannelEventDelegate

ConnectionDelegate