A11yIssueOverlay
fun A11yIssueOverlay(scanResult: ScanResult?, onIssueSelected: (A11yIssue) -> Unit = {}, onIssuesSelected: (List<A11yIssue>) -> Unit = { issues ->
issues.firstOrNull()?.let(onIssueSelected)
}, modifier: Modifier = Modifier, issueOffsetY: Int = 0)
Draws issue highlights over affected nodes from a scan result.
Issues are grouped by affected node id so tapping one highlight can show every issue associated with that node.
Parameters
scanResult
Result whose issues should be highlighted, or null to hide overlays.
onIssueSelected
Backward-compatible callback for a single selected issue.
onIssuesSelected
Callback invoked with all issues for the tapped node.
modifier
Modifier applied to the overlay container.
issueOffsetY
Vertical offset applied to highlighted bounds, usually for scroll correction.