IdlingResourceOwner

Known direct subclasses
AndroidComposeUiTest

Variant of ComposeUiTest for when you want to have access the current activity of type A.


An interface for ComposeUiTest implementations that support registering and unregistering IdlingResources.

Implementing this interface indicates that the test environment allows synchronization with asynchronous operations via idling resources. While supported on Android and Desktop, this capability is currently not available on all targets (such as Web).

Usage of these APIs should generally be guarded by a check to ComposeUiTest.isIdlingResourceSupported.

Summary

Public functions

Unit

Registers an IdlingResource in this test.

Cmn
Unit

Unregisters an IdlingResource from this test.

Cmn

Public functions

registerIdlingResource

fun registerIdlingResource(idlingResource: IdlingResource): Unit

Registers an IdlingResource in this test.

unregisterIdlingResource

fun unregisterIdlingResource(idlingResource: IdlingResource): Unit

Unregisters an IdlingResource from this test.