AttachmentPreviewFactory

Functions

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

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

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

Creates and instantiates a new instance of AttachmentPreviewViewHolder.