FileAttachmentPreviewFactory

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun canHandle(attachment: Attachment): Boolean

Checks if the factory can create a preview ViewHolder for this attachment.

Link copied to clipboard
open override fun onCreateViewHolder(parentView: ViewGroup, attachmentRemovalListener: (Attachment) -> Unit, style: MessageComposerViewStyle?): AttachmentPreviewViewHolder

Creates and instantiates a new instance of FileAttachmentPreviewFactory.