getItemViewType

fun getItemViewType(attachment: Attachment): Int

Finds the first factory that is capable of displaying the given attachment and return a view type associated with the factory.

Parameters

attachment

The attachment to display.