kakao / com.agoda.kakao.recycler / KRecyclerItemTypeBuilder
class KRecyclerItemTypeBuilder
Class that maps types to providing functions
To be able to support different item types in KRecyclerView, this class adds support for mapping item type classes to functions that provide them. KEmptyRecyclerItem is added by default.
See Also
Name | Summary |
---|---|
<init> | KRecyclerItemTypeBuilder() Class that maps types to providing functions |
Name | Summary |
---|---|
itemTypes | val itemTypes: MutableMap < KClass <out KRecyclerItem <*>>, KRecyclerItemType < KRecyclerItem <*>>> |
Name | Summary |
---|---|
itemType | fun <T : KRecyclerItem <*>> itemType(provideItem: (Matcher< View >) -> T ): Unit Adds entry that helps KRecyclerView to automatically build child views |