Skip to main content

GalleryContentViewDelegate

The delegate used GalleryAttachmentViewInjector to communicate user interactions.

public protocol GalleryContentViewDelegate: ChatMessageContentViewDelegate 

Inheritance

ChatMessageContentViewDelegate

Requirements

galleryMessageContentView(at:​didTapAttachmentPreview:​previews:​)

Called when the user taps on one of the attachment previews.

func galleryMessageContentView(
at indexPath: IndexPath?,
didTapAttachmentPreview attachmentId: AttachmentId,
previews: [GalleryItemPreview]
)

galleryMessageContentView(at:​didTakeActionOnUploadingAttachment:​)

Called when action button is clicked for uploading attachment.

func galleryMessageContentView(
at indexPath: IndexPath?,
didTakeActionOnUploadingAttachment attachmentId: AttachmentId
)

Did you find this page helpful?