Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Latest commit

 

History

History
35 lines (22 loc) · 1.52 KB

File metadata and controls

35 lines (22 loc) · 1.52 KB

kakao / com.agoda.kakao.recycler / KRecyclerItemTypeBuilder

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

itemType

KEmptyRecyclerItem

Constructors

Name Summary
<init> KRecyclerItemTypeBuilder()
Class that maps types to providing functions

Properties

Name Summary
itemTypes val itemTypes: MutableMap<KClass<out KRecyclerItem<*>>, KRecyclerItemType<KRecyclerItem<*>>>

Functions

Name Summary
itemType fun <T : KRecyclerItem<*>> itemType(provideItem: (Matcher<View>) -> T): Unit
Adds entry that helps KRecyclerView to automatically build child views