IsCameraSteady
Semantic property key for indicating if the map camera is stable (i.e., not currently moving).
It can be used in Compose UI tests to check if animations or camera movements have completed.
When the camera is steady, the value will be true. If the camera is moving (e.g., during a pan, zoom, or tilt animation), the value will be false.
This helps ensure that your test only proceeds after the map camera has finished moving.
Example usages:
@Test
fun testMapReadiness() {
composeTestRule.waitUntilExactlyOneExists(
matcher = SemanticsMatcher.expectValue(IsCameraSteady, true),
timeoutMillis = 10000,
)
}Content copied to clipboard