Package 

Interface RecyclerActions

  • All Implemented Interfaces:
    io.github.kakaocup.kakao.common.actions.BaseActions , io.github.kakaocup.kakao.common.actions.ScrollableActions , io.github.kakaocup.kakao.common.actions.SwipeableActions

    
    public interface RecyclerActions
     implements ScrollableActions, SwipeableActions
                        

    Provides ScrollableActions implementation for RecyclerView

    • Method Summary

      Modifier and Type Method Description
      Unit scrollToStart() Scrolls to the starting position of the view
      Unit scrollToEnd() Scrolls to the last position of the view
      Unit scrollTo(Integer position) Scrolls to the specific position of the view
      Unit scrollTo(Matcher<View> matcher) Scrolls to specific view holder that matches given matcher
      Unit scrollTo(Function1<ViewBuilder, Unit> viewBuilder) Scrolls to specific view holder that matches given matcher
      Integer getSize() Returns the size of RecyclerView
      abstract ViewInteractionDelegate getView()
      • 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.recycler.RecyclerActions

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

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

      • scrollTo

         Unit scrollTo(Integer position)

        Scrolls to the specific position of the view

        Parameters:
        position - Scrolling destination
      • scrollTo

         Unit scrollTo(Matcher<View> matcher)

        Scrolls to specific view holder that matches given matcher

        Parameters:
        matcher - Matcher for view holder, which is scroll destination
      • scrollTo

         Unit scrollTo(Function1<ViewBuilder, Unit> viewBuilder)

        Scrolls to specific view holder that matches given matcher

        Parameters:
        viewBuilder - Builder that will be used to match view to scroll