Skip to main content

ChatMessageListVCDelegate

The object that acts as the delegate of the message list.

public protocol ChatMessageListVCDelegate: AnyObject 

Inheritance

AnyObject

Requirements

chatMessageListVC(_:​willDisplayMessageAt:​)

Tells the delegate the message list is about to draw a message for a particular row.

func chatMessageListVC(
_ vc: ChatMessageListVC,
willDisplayMessageAt indexPath: IndexPath
)

Parameters

  • vc: The message list informing the delegate of this event.
  • indexPath: An index path locating the row in the message list.

chatMessageListVC(_:​scrollViewDidScroll:​)

Tells the delegate when the user scrolls the content view within the receiver.

func chatMessageListVC(
_ vc: ChatMessageListVC,
scrollViewDidScroll scrollView: UIScrollView
)

Parameters

  • vc: The message list informing the delegate of this event.
  • scrollView: The scroll view that belongs to the message list.

chatMessageListVC(_:​didTapOnAction:​for:​)

Tells the delegate when the user taps on an action for the given message.

func chatMessageListVC(
_ vc: ChatMessageListVC,
didTapOnAction actionItem: ChatMessageActionItem,
for message: ChatMessage
)

Parameters

  • vc: The message list informing the delegate of this event.
  • actionItem: The action performed on the given message.
  • message: The given message.

Did you find this page helpful?