onCreateViewHolder
abstract fun onCreateViewHolder(parentView: ViewGroup, attachmentRemovalListener: (Attachment) -> Unit, style: MessageComposerViewStyle? = null): AttachmentPreviewViewHolder
Creates and instantiates a new instance of AttachmentPreviewViewHolder.
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.