AttachmentPreviewFactoryManager

constructor(attachmentPreviewFactories: List<AttachmentPreviewFactory> = listOf( MediaAttachmentPreviewFactory(), AudioRecordAttachmentPreviewFactory(), FileAttachmentPreviewFactory(), ), fallbackAttachmentPreviewFactory: FallbackAttachmentPreviewFactory = FallbackAttachmentPreviewFactory())

Parameters

attachmentPreviewFactories

The list of ViewHolder factories for attachment preview items.

fallbackAttachmentPreviewFactory

The fallback factory that will be used in case there are no other factories that can handle the attachment.