BaseMatcher

abstract class BaseMatcher<T : BaseMatcher<T>?>

Base class used to share common properties used in TestSpec builders. Mirrors relevant properties from com.facebook.litho.Component.Builder.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun clickHandler(clickHandler: EventHandler<ClickEvent>): T
open fun clickHandler(clickHandlerMatcher: Matcher<EventHandler<ClickEvent>>): T
Link copied to clipboard
open fun focusable(focusable: Boolean): T
open fun focusable(focusableMatcher: Matcher<Boolean>): T
Link copied to clipboard
open fun focusChangeHandler(focusChangeHandler: EventHandler<FocusChangedEvent>): T
open fun focusChangeHandler(focusChangeHandlerMatcher: Matcher<EventHandler<FocusChangedEvent>>): T
Link copied to clipboard
open fun interceptTouchHandler(interceptTouchHandler: EventHandler<InterceptTouchEvent>): T
open fun interceptTouchHandler(interceptTouchHandlerMatcher: Matcher<EventHandler<InterceptTouchEvent>>): T
Link copied to clipboard
open fun longClickHandler(longClickHandler: EventHandler<LongClickEvent>): T
open fun longClickHandler(longClickHandlerMatcher: Matcher<EventHandler<LongClickEvent>>): T
Link copied to clipboard
open fun touchHandler(touchHandler: EventHandler<TouchEvent>): T
open fun touchHandler(touchEventHandlerMatcher: Matcher<EventHandler<TouchEvent>>): T
Link copied to clipboard
open fun transitionKey(transitionKey: String): T
open fun transitionKey(transitionKeyMatcher: Matcher<String>): T