kakao / com.agoda.kakao.switch / KSwitch
class KSwitch :
KBaseView
<
KSwitch
>,
SwitchableActions
,
TextViewAssertions
,
CheckableAssertions
View with SwitchableActions, CheckableAssertions and TextViewAssertions
See Also
Name | Summary |
---|---|
<init> | KSwitch(function: ViewBuilder .() -> Unit ) KSwitch(parent: Matcher< View >, function: ViewBuilder .() -> Unit ) KSwitch(parent: DataInteraction, function: ViewBuilder .() -> Unit ) |
Name | Summary |
---|---|
root | open var root: Matcher<Root> |
view | open val view: ViewInteractionDelegate |
Name | Summary |
---|---|
containsText | open fun containsText(text: String ): Unit Checks if the view contains given text |
hasAnyText | open fun hasAnyText(): Unit Checks if the view has any text |
hasContentDescription | open fun hasContentDescription(text: String ): Unit Checks if the view has given content description |
hasEmptyText | open fun hasEmptyText(): Unit Checks if the view have not any text |
hasHint | open fun hasHint(hint: String ): Unit open fun hasHint(resId: Int ): Unit Checks if the view has given hint |
hasNoText | open fun hasNoText(text: String ): Unit open fun hasNoText(resId: Int ): Unit Checks if the view does not have a given text |
hasText | open fun hasText(text: String ): Unit open fun hasText(resId: Int ): Unit Checks if the view has given text open fun hasText(matcher: Matcher< String >): Unit Checks if the view has text that matches given matcher |
hasTextColor | open fun hasTextColor(resId: Int ): Unit Checks if the view has given text color |
invoke | operator fun invoke(function: T .() -> Unit ): Unit Operator that allows usage of DSL style |
isChecked | open fun isChecked(): Unit Checks if the view is checked |
isNotChecked | open fun isNotChecked(): Unit Checks if the view is not checked |
perform | infix fun perform(function: T .() -> Unit ): T Infix function for invoking lambda on your view |
startsWithText | open fun startsWithText(text: String ): Unit Checks if the view text start with given substring |
swipeSwitchThumb | open fun swipeSwitchThumb(direction: SwitchableActions.Direction ): Unit Moves the thumb of the switch to the right |