canHandle

abstract fun canHandle(attachment: Attachment): Boolean

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

Return

True if the factory is able to provide a preview for the given Attachment.

Parameters

attachment

The attachment we want to show a preview for.