SBUOpenChannelViewModel

open class SBUOpenChannelViewModel : SBUBaseChannelViewModel

Undocumented

Logic properties (Public)

LifeCycle

Channel related

Load Messages

  • Declaration

    Swift

    public override func loadInitialMessages(startingPoint: Int64?,
                                      showIndicator: Bool,
                                      initialMessages: [SBDBaseMessage]?)
  • Declaration

    Swift

    public override func loadPrevMessages()
  • Loads previous messages from given timestamp.

    Declaration

    Swift

    public func loadPrevMessages(timestamp: Int64?)

    Parameters

    timestamp

    Timestamp to load messages from to the previous direction, or nil to start from the latest (LLONG_MAX).

  • Loads next messages from lastUpdatedTimestamp.

    Declaration

    Swift

    public override func loadNextMessages()
  • Loads messages to both direction from given timestamp.

    Declaration

    Swift

    public func loadBothMessages(timestamp: Int64?, showIndicator: Bool)

    Parameters

    startingPoint

    Starting point to load messages from, or nil to load from the latest. (LLONG_MAX)

    showIndicator

    Whether to show indicator on load or not.

Common

  • Declaration

    Swift

    public override func hasNext() -> Bool
  • Declaration

    Swift

    public override func hasPrevious() -> Bool

SBDConnectionDelegate

SBDChannelDelegate

  • Undocumented

    Declaration

    Swift

    open override func channel(_ sender: SBDBaseChannel, didReceive message: SBDBaseMessage)
  • Undocumented

    Declaration

    Swift

    open override func channel(_ sender: SBDBaseChannel, didUpdate message: SBDBaseMessage)
  • Undocumented

    Declaration

    Swift

    open override func channel(_ sender: SBDBaseChannel, messageWasDeleted messageId: Int64)
  • Undocumented

    Declaration

    Swift

    open override func channelWasChanged(_ sender: SBDBaseChannel)
  • Undocumented

    Declaration

    Swift

    open override func channelWasFrozen(_ sender: SBDBaseChannel)
  • Undocumented

    Declaration

    Swift

    open override func channelWasUnfrozen(_ sender: SBDBaseChannel)
  • Undocumented

    Declaration

    Swift

    open override func channel(_ sender: SBDBaseChannel, userWasMuted user: SBDUser)
  • Undocumented

    Declaration

    Swift

    open override func channel(_ sender: SBDBaseChannel, userWasUnmuted user: SBDUser)
  • Undocumented

    Declaration

    Swift

    open override func channelDidUpdateOperators(_ sender: SBDBaseChannel)
  • Undocumented

    Declaration

    Swift

    open override func channel(_ sender: SBDBaseChannel, userWasBanned user: SBDUser)
  • Undocumented

    Declaration

    Swift

    open func channel(_ sender: SBDOpenChannel, userDidEnter user: SBDUser)
  • Undocumented

    Declaration

    Swift

    open func channel(_ sender: SBDOpenChannel, userDidExit user: SBDUser)
  • Undocumented

    Declaration

    Swift

    open override func channelWasDeleted(_ channelUrl: String, channelType: SBDChannelType)