List

@objc(SBUOpenChannelModuleList)
@objcMembers
open class List : SBUBaseChannelModule.List

A module component that represent the list of SBUOpenChannelModule.

UI

Logic

LifeCycle

Scroll Bottom View

TableView: Cell

Menu

  • Calculates the point at which to draw the menu.

    Declaration

    Swift

    public func calculatorMenuPoint(indexPath: IndexPath) -> CGPoint

    Parameters

    indexPath

    The index path of the selected message cell

    Return Value

    CGPoint value

Actions

UITableView relations

  • Undocumented

    Declaration

    Swift

    open override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
  • Configures cell with message for a particular row.

    Declaration

    Swift

    open func configureCell(_ messageCell: SBUOpenChannelBaseMessageCell, message: SBDBaseMessage, forRowAt indexPath: IndexPath)

    Parameters

    messageCell
    message

    The message for messageCell.

    indexPath

    An index path representing the messageCell

  • Register the message cell to the table view.

    Declaration

    Swift

    public func register(messageCell: SBUOpenChannelBaseMessageCell, nib: UINib? = nil)
  • Generates identifier of message cell.

    Declaration

    Swift

    open func generateCellIdentifier(by message: SBDBaseMessage) -> String

    Parameters

    message

    Message object

    Return Value

    The identifier of message cell.

  • Gets the position of the message to be grouped for open channel.

    Only successful messages can be grouped.

    Declaration

    Swift

    public func getMessageGroupingPosition(currentIndex: Int) -> MessageGroupPosition

    Parameters

    currentIndex

    Index of current message in the message list

    Return Value

    Position of a message when grouped