OnRootViewIdlingResourceRule

fun OnRootViewIdlingResourceRule(activityScenarioRule: ActivityScenarioRule<out Activity>)

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


fun OnRootViewIdlingResourceRule(onRootView: OnRootView)

Parameters

onRootView

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