KViewPager2

public KViewPager2 KViewPager2(Function1<ViewBuilder, Unit> builder, Function1<KViewPagerItemTypeBuilder, Unit> itemTypeBuilder)

Constructs view class with view interaction from given ViewBuilder

Parameters

builder

ViewBuilder which will result in view's interaction

itemTypeBuilder

Lambda with receiver where you pass your item providers

See also


public KViewPager2 KViewPager2(Matcher<View> parent, Function1<ViewBuilder, Unit> builder, Function1<KViewPagerItemTypeBuilder, Unit> itemTypeBuilder)

Constructs view class with parent and view interaction from given ViewBuilder

Parameters

parent

Matcher that will be used as parent in isDescendantOfA() matcher

builder

ViewBuilder which will result in view's interaction

itemTypeBuilder

Lambda with receiver where you pass your item providers

See also


public KViewPager2 KViewPager2(DataInteraction parent, Function1<ViewBuilder, Unit> builder, Function1<KViewPagerItemTypeBuilder, Unit> itemTypeBuilder)

Constructs view class with parent and view interaction from given ViewBuilder

Parameters

parent

DataInteraction that will be used as parent to ViewBuilder

builder

ViewBuilder which will result in view's interaction

itemTypeBuilder

Lambda with receiver where you pass your item providers

See also