🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

IdlingResourceOwner

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

Source set: Common
public interface IdlingResourceOwner

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.

Functions

registerIdlingResource

Source set: Common
public fun registerIdlingResource(idlingResource: IdlingResource)

Registers an IdlingResource in this test.

unregisterIdlingResource

Source set: Common
public fun unregisterIdlingResource(idlingResource: IdlingResource)

Unregisters an IdlingResource from this test.

Content updated: