IsSceneReady
Semantic property key for indicating whether the scene is ready.
This property holds a Boolean value that reflects the readiness state of the scene. When the scene is ready for interaction, this property will return true. If the scene is not yet ready, it will return false. If the SceneReadyListener has not been added via MapSemanticActions.AddSceneReadyListener, the value will be false.
The value of this property must be used in conjunction with the MapSemanticActions.AddSceneReadyListener to register the listener for scene readiness.
Example usages:
@Test
fun testSceneReadiness() {
composeTestRule.onNodeWithTag("test_tag")
.performSemanticsAction(AddSceneReadyListener)
composeTestRule.waitUntilExactlyOneExists(
matcher = SemanticsMatcher.expectValue(IsSceneReady, true),
timeoutMillis = 10000,
)
}Content copied to clipboard