CameraPosition
Semantic property key for indicating the map camera position. Returns null when IsMapReady is false.
This helps ensure that your test only proceeds after the map camera has finished moving.
Example usages:
@Test
fun testCameraPosition() {
val cameraPosition = composeTestRule.onNodeWithTag("test_tag")
.fetchSemanticsNode().config[MapSemanticProperties.CameraPosition]
val position = cameraPosition?.position
}Content copied to clipboard