Function

registerIdlingResource

Attempts to register an IdlingResource in this test.

registerIdlingResource

Source set: Common
public fun ComposeUiTest.registerIdlingResource(idlingResource: IdlingResource): Boolean

Attempts to register an IdlingResource in this test.

This implementation checks isIdlingResourceSupported before attempting to register the resource.

Parameters

idlingResource IdlingResource to register in the test

Return

true if the idling resource was successfully registered, or false if the implementation does not support idling resources.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: