KViewPagerItemTypeBuilder

public final class KViewPagerItemTypeBuilder

Class that maps types to providing functions

To be able to support different item types in KViewPager2, this class adds support for mapping item type classes to functions that provide them. KEmptyViewPagerItem 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 KViewPagerItem<?>>(Function1<Matcher<View>, T> provideItem)

Adds entry that helps KViewPager2 to automatically build child views