video-attachment-gallery-preview-properties
content
A video attachment the view displays
open var content: ChatMessageVideoAttachment?
didTapOnAttachment
A handler that will be invoked when the view is tapped
open var didTapOnAttachment: ((ChatMessageVideoAttachment) -> Void)?
didTapOnUploadingActionButton
A handler that will be invoked when action button on uploading overlay is tapped
open var didTapOnUploadingActionButton: ((ChatMessageVideoAttachment) -> Void)?
imageView
An image view used to display video preview image
open private(set) lazy var imageView = UIImageView()
.withoutAutoresizingMaskConstraints
loadingIndicator
A loading indicator that is shown when preview is being loaded
open private(set) lazy var loadingIndicator = components
.loadingIndicator.init()
.withoutAutoresizingMaskConstraints
uploadingOverlay
An uploading overlay that shows video uploading progress
open private(set) lazy var uploadingOverlay = components
.imageUploadingOverlay.init()
.withoutAutoresizingMaskConstraints
playButton
A button displaying play
icon.
open private(set) lazy var playButton = UIButton()
.withoutAutoresizingMaskConstraints
attachmentId
public var attachmentId: AttachmentId?
Methods
setUpAppearance()
override open func setUpAppearance()
setUp()
override open func setUp()
setUpLayout()
override open func setUpLayout()
updateContent()
override open func updateContent()
handleTapOnAttachment(_:)
A handler that is invoked when view is tapped.
@objc open func handleTapOnAttachment(_ recognizer: UITapGestureRecognizer)
handleTapOnPlay(_:)
A handler that is invoked when playButton
is touched up inside.
@objc open func handleTapOnPlay(_ sender: UIButton)