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