Package 

Class KViewPager2

  • All Implemented Interfaces:
    io.github.kakaocup.kakao.common.actions.BaseActions , io.github.kakaocup.kakao.common.actions.ScrollableActions , io.github.kakaocup.kakao.common.actions.SwipeableActions , io.github.kakaocup.kakao.common.assertions.AdapterAssertions , io.github.kakaocup.kakao.common.assertions.BaseAssertions , io.github.kakaocup.kakao.pager2.ViewPager2Actions , io.github.kakaocup.kakao.pager2.ViewPager2AdapterAssertions

    
    public final class KViewPager2
     implements ViewPager2Actions, ViewPager2AdapterAssertions, SwipeableActions, BaseAssertions
                        

    View with SwipeableActions and ViewPager2Assertions

    • Method Summary

      Modifier and Type Method Description
      final Matcher<View> getMatcher()
      final Map<KClass<out KViewPagerItem<?>>, KViewPagerItemType<KViewPagerItem<?>>> getItemTypes()
      ViewInteractionDelegate getView()
      Matcher<Root> getRoot()
      Unit setRoot(Matcher<Root> root)
      final <T extends KViewPagerItem<?>> Unit childAt(Integer position, Function1<T, Unit> function) Performs given actions/assertion on child at given position
      final Unit invoke(Function1<KViewPager2, Unit> function) Operator that allows usage of DSL style
      final KViewPager2 perform(Function1<KViewPager2, Unit> function) Infix function for invoking lambda on your viewSometimes instance of view is a result of a function or constructor.
      • Methods inherited from class io.github.kakaocup.kakao.pager2.KViewPager2

        assert, doesNotExist, getSize, hasAnyTag, hasBackgroundColor, hasBackgroundColor, hasDescendant, hasNotDescendant, hasNotSibling, hasSibling, hasSize, hasTag, inRoot, isActivated, isAutoHandwritingEnabled, isClickable, isCompletelyAbove, isCompletelyBelow, isCompletelyDisplayed, isCompletelyLeftOf, isCompletelyRightOf, isDirty, isDisabled, isDisplayed, isEnabled, isFocusable, isFocused, isForceDarkAllowed, isGone, isHapticFeedbackEnabled, isHovered, isInvisible, isNotClickable, isNotCompletelyDisplayed, isNotDisplayed, isNotFocusable, isNotFocused, isNotSelected, isSelected, isVisible, matches, notMatches, scrollBackward, scrollForward, scrollTo, scrollToEnd, scrollToStart
      • Methods inherited from class io.github.kakaocup.kakao.common.actions.ScrollableActions

        act, click, doubleClick, longClick, onFailure, pressImeAction, repeatUntil, scrollTo
      • Methods inherited from class io.github.kakaocup.kakao.pager2.ViewPager2Actions

        swipeDown, swipeLeft, swipeRight, swipeUp
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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
      • 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
      • 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