GetRenderedFeaturesForGeoPoint
val GetRenderedFeaturesForGeoPoint: SemanticsPropertyKey<AccessibilityAction<(GeoPoint, RenderedFeatureQueryOptions, CompletableDeferred<List<RenderedFeature>>) -> Boolean>>
Semantic action to obtain RenderedFeatures of a given GeoPoint controlled by RenderedFeatureQueryOptions.
Example usages:
@Test
fun testGetRenderedFeaturesForGeoPoint() {
val point = GeoPoint(0.0, 0.0)
val query = RenderedFeatureQueryOptions()
val result = mutableListOf<RenderedFeature>()
composeTestRule.onNodeWithTag("test_tag")
.performSemanticsAction(MapSemanticActions.GetRenderedFeaturesForGeoPoint) { action ->
action(point, query, result)
}
}Content copied to clipboard