onCreateViewHolder
fun onCreateViewHolder(parentView: ViewGroup, viewType: Int, 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 various factories. If null, the respective factory will retain the default appearance.