GalleryAttachmentViewInjector
The type used to show an media gallery in ChatMessageContentView
.
open class GalleryAttachmentViewInjector: AttachmentViewInjector
Inheritance
Properties
galleryView
A gallery which shows attachment previews.
open private(set) lazy var galleryView: ChatMessageGalleryView = contentView
.components
.galleryView.init()
.withoutAutoresizingMaskConstraints
galleryViewAspectRatio
A gallery view width * height ratio.
open var galleryViewAspectRatio: CGFloat?
If nil
is returned, aspect ratio will not be applied and gallery view will
aspect ratio will depend on internal constraints.
Returns 1.32
by default.
Methods
contentViewDidLayout(options:)
override open func contentViewDidLayout(options: ChatMessageLayoutOptions)
contentViewDidUpdateContent()
override open func contentViewDidUpdateContent()
handleTapOnAttachment(with:)
Is invoked when attachment preview is tapped.
open func handleTapOnAttachment(with id: AttachmentId)
Parameters
id
: Attachment identifier.
handleUploadingAttachmentAction(_:)
Is invoked when action button on attachment uploading overlay is tapped.
open func handleUploadingAttachmentAction(_ attachmentId: AttachmentId)
Parameters
id
: Attachment identifier.