KRecyclerItemTypeBuilder

public final 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

Constructors

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
public final Unit itemType<T extends KRecyclerItem<?>>(Function1<Matcher<View>, T> provideItem)

Adds entry that helps KRecyclerView to automatically build child views