KAdapterItemTypeBuilder

public final class KAdapterItemTypeBuilder

Class that maps types to providing functions

To be able to support different item types in KListView, this class adds support for mapping item type classes to functions that provide them. KEmptyAdapterItem is added by default.

See also

Constructors

Properties

Link copied to clipboard
private final Map<KClass<? extends KAdapterItem<?>>, KAdapterItemType<KAdapterItem<?>>> itemTypes

Functions

Link copied to clipboard
public final Map<KClass<? extends KAdapterItem<?>>, KAdapterItemType<KAdapterItem<?>>> getItemTypes()
Link copied to clipboard
public final Unit itemType<T extends KAdapterItem<?>>(Function1<DataInteraction, T> provideItem)

Adds entry that helps KListView to automatically build child views