-
- All Implemented Interfaces:
-
io.github.kakaocup.kakao.common.actions.BaseActions,io.github.kakaocup.kakao.common.assertions.BaseAssertions,io.github.kakaocup.kakao.intercept.Interceptable
public class KAdapterItem<T extends Object> implements BaseActions, BaseAssertions, Interceptable<ViewInteraction, ViewAssertion, ViewAction>
Base class for KAbsListView adapter items
Please extend this class to provide custom recycler view item types
-
-
Field Summary
Fields Modifier and Type Field Description private final ViewInteractionDelegateviewprivate Matcher<Root>root
-
Constructor Summary
Constructors Constructor Description KAdapterItem(DataInteraction interaction)
-
Method Summary
Modifier and Type Method Description ViewInteractionDelegategetView()Matcher<Root>getRoot()UnitsetRoot(Matcher<Root> root)final Unitinvoke(Function1<T, Unit> function)Operator that allows usage of DSL style final Tperform(Function1<T, 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.list.KAdapterItem
act, assert, click, doesNotExist, doubleClick, hasAnyTag, hasBackgroundColor, hasBackgroundColor, hasDescendant, hasNotDescendant, hasNotSibling, hasSibling, hasTag, inRoot, intercept, 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, longClick, matches, notMatches, onFailure, pressImeAction, repeatUntil, reset, scrollTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
KAdapterItem
KAdapterItem(DataInteraction interaction)
- Parameters:
interaction- Data interaction of item.
-
-
Method Detail
-
getView
ViewInteractionDelegate getView()
-
invoke
final Unit invoke(Function1<T, Unit> function)
Operator that allows usage of DSL style
- Parameters:
function- Tail lambda with receiver which is your view
-
perform
final T perform(Function1<T, Unit> function)
Infix function for invoking lambda on your view
Sometimes instance of view is a result of a function or constructor. In this specific case you can't call invoke() since it will be considered as tail lambda of your fun/constructor. In such cases please use this function.
- Parameters:
function- Tail lambda with receiver which is your view
-
-
-
-