OnRootViewIdlingResourceRule

abstract class OnRootViewIdlingResourceRule(onRootView: OnRootView) : ResourceRule

An idling resource rule that waits for a condition on the app's root view to be satisfied.

Parameters

onRootView

A function that executes another function, providing it with the root view.

Constructors

Link copied to clipboard
fun OnRootViewIdlingResourceRule(activityScenarioRule: ActivityScenarioRule<out Activity>)

Constructs an OnRootViewIdlingResourceRule that obtains the root view from the given activityScenarioRule.

Link copied to clipboard
fun OnRootViewIdlingResourceRule(onRootView: OnRootView)

Inherited functions

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

Inheritors

Link copied to clipboard