preferred Content Focus Target
Marks a composable inside the GeoView trailing lambda content as the preferred initial focus target when toolkit accessibility focus handoff moves focus from the GeoView into the content. This is useful for content such as a Callout where initial focus should land on the first meaningful child rather than the underlying GeoView.
If no preferred content focus target is provided, focus falls back to the Callout container. This modifier only has an effect when the GeoView composable's canFocus parameter is true.
Example:
MapView(arcGISMap = map){
Callout(location = point) {
Text(
modifier = Modifier.preferredContentFocusTarget(),
text = "Location: ${point.x}, ${point.y}"
)
}
}Content copied to clipboard
Since
300.0.0