Skip to main content

chat-message-list-router-properties

messagePopUpTransitionController

The transition controller used to animate ChatMessagePopupVC transition.

open private(set) lazy var messagePopUpTransitionController 

impactFeedbackGenerator

Feedback generator used when presenting actions controller on selected message

open var impactFeedbackGenerator 

zoomTransitionController

The transition controller used to animate photo gallery transition.

open private(set) lazy var zoomTransitionController 

Methods

showMessageActionsPopUp(messageContentView:messageActionsController:messageReactionsController:)

Shows the detail pop-up for the selected message. By default called when the message is long-pressed.

open func showMessageActionsPopUp(
messageContentView: ChatMessageContentView,
messageActionsController: ChatMessageActionsVC,
messageReactionsController: ChatMessageReactionsVC?
)

Parameters

  • messageContentView: The source content view of the selected message. It's used to get the information about the source frame for the zoom-like transition.
  • messageActionsController: The ChatMessageActionsVC object which will presented as a part of the pop up.
  • messageReactionsController: The ChatMessageReactionsVC object which will presented as a part of the pop up.

Handles opening of a link URL.

@available(iOSApplicationExtension, unavailable)
open func showLinkPreview(link: URL)

Parameters

  • url: The URL of the link to preview.

showFilePreview(fileURL:)

Shows a View Controller that show the detail of a file attachment.

open func showFilePreview(fileURL: URL?) 

Parameters

  • fileURL: The URL of the file to preview.

showThread(messageId:cid:client:)

Shows the detail View Controller of a message thread.

@available(iOSApplicationExtension, unavailable)
open func showThread(
messageId: MessageId,
cid: ChannelId,
client: ChatClient
)

Parameters

  • messageId: The id if the parent message of the thread.
  • cid: The cid of the channel the message belongs to.
  • client: The current ChatClient instance.

showGallery(message:initialAttachmentId:previews:)

Shows the gallery VC for the given message starting on specific attachment.

open func showGallery(
message: ChatMessage,
initialAttachmentId: AttachmentId,
previews: [GalleryItemPreview]
)

Parameters

  • message: The id of the message the attachment belongs to.
  • initialAttachment: The attachment to present.
  • previews: All previewable attachments of the message. This is used for swiping right-left when a single message has multiple previewable attachments.

animationController(forPresented:presenting:source:)

open func animationController(
forPresented presented: UIViewController,
presenting: UIViewController,
source: UIViewController
) -> UIViewControllerAnimatedTransitioning?

animationController(forDismissed:)

open func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? 

interactionControllerForDismissal(using:)

open func interactionControllerForDismissal(using animator: UIViewControllerAnimatedTransitioning)
-> UIViewControllerInteractiveTransitioning?

Did you find this page helpful?