onCreateViewHolder

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

Creates and instantiates a new instance of MediaAttachmentPreviewFactory.

Return

An instance of attachment preview ViewHolder.

Parameters

parentView

The parent container.

attachmentRemovalListener

Click listener for the remove attachment button.

style

Used to style the factory. If null, the factory will retain the default appearance.