ComposeContext

A context through which composable blocks can be orchestrated within a ComposeExtension.

Properties

Link copied to clipboard
abstract val density: Density
Link copied to clipboard
abstract val mainClock: MainTestClock

Functions

Link copied to clipboard
abstract suspend fun awaitIdle()
Link copied to clipboard
abstract fun onAllNodes(matcher: SemanticsMatcher, useUnmergedTree: Boolean): SemanticsNodeInteractionCollection
Link copied to clipboard
abstract fun onNode(matcher: SemanticsMatcher, useUnmergedTree: Boolean): SemanticsNodeInteraction
Link copied to clipboard
abstract fun registerIdlingResource(idlingResource: IdlingResource)
Link copied to clipboard
abstract fun <T> runOnIdle(action: () -> T): T
Link copied to clipboard
abstract fun <T> runOnUiThread(action: () -> T): T
Link copied to clipboard
abstract fun setContent(composable: @Composable () -> Unit)
Link copied to clipboard
abstract fun unregisterIdlingResource(idlingResource: IdlingResource)
Link copied to clipboard
abstract fun waitForIdle()
Link copied to clipboard
abstract fun waitUntil(timeoutMillis: Long, condition: () -> Boolean)
abstract fun waitUntil(conditionDescription: String, timeoutMillis: Long, condition: () -> Boolean)
Link copied to clipboard
abstract fun waitUntilAtLeastOneExists(matcher: SemanticsMatcher, timeoutMillis: Long)
Link copied to clipboard
abstract fun waitUntilDoesNotExist(matcher: SemanticsMatcher, timeoutMillis: Long)
Link copied to clipboard
abstract fun waitUntilExactlyOneExists(matcher: SemanticsMatcher, timeoutMillis: Long)
Link copied to clipboard
abstract fun waitUntilNodeCount(matcher: SemanticsMatcher, count: Int, timeoutMillis: Long)