ViewShowingIdlingResourceRule

class ViewShowingIdlingResourceRule : ResourceRule

A JUnit rule that registers an idling resource to wait for a view to be shown or stop being shown using View.isShown.

Constructors

Link copied to clipboard
fun ViewShowingIdlingResourceRule()

Functions

Link copied to clipboard
fun waitForViewNotShowing(viewMatcher: Matcher<View>)

Idle when a view, matched by viewMatcher, is not shown.

Link copied to clipboard
fun waitForViewShowing(viewMatcher: Matcher<View>, idleOnShowing: Boolean)

Idle when a view, matched by viewMatcher, is shown or stopped being shown.

Inherited functions

Link copied to clipboard
open override fun apply(baseStatement: Statement, description: Description): Statement