Package-level declarations

Types

Link copied to clipboard

Walks a Compose semantics tree and converts each SemanticsNode to an A11yNode.

Link copied to clipboard
class A11yScanner(rules: List<A11yRule>)

Orchestrates a single accessibility scan.

Link copied to clipboard
class A11yScannerController(nodeProvider: () -> List<A11yNode>, screenDensity: Float)

Public SDK entry point for running accessibility scans.

Link copied to clipboard
class ColorExtractor(rootView: View)

Samples background and foreground colors from a composable's rendered bounds.

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun A11yScannerScaffold(scannerController: A11yScannerController, config: ScannerConfig, modifier: Modifier = Modifier, issueOffsetY: Int = 0, content: @Composable () -> Unit)

Root scaffold that wires the full accessibility scanner UI around content.

Link copied to clipboard
fun IssueDetailPanel(issues: List<A11yIssue>, onDismiss: () -> Unit, modifier: Modifier = Modifier)

fun IssueDetailPanel(issue: A11yIssue?, issues: List<A11yIssue> = issue?.let(::listOf).orEmpty(), onDismiss: () -> Unit, modifier: Modifier = Modifier)

Convenience overload for showing one or more issues.

Link copied to clipboard
fun IssueHighlightBox(issue: A11yIssue, onIssueSelected: (A11yIssue) -> Unit, modifier: Modifier = Modifier)

Draws a tappable outline over the bounds of an accessibility issue.

Link copied to clipboard
fun IssueSeverityBadge(severity: A11ySeverity, count: Int = 1, modifier: Modifier = Modifier)

Compact severity badge used in scan summaries and overlays.

Link copied to clipboard
fun ScanReportSheet(result: ScanResult, onDismiss: () -> Unit, modifier: Modifier = Modifier)

Full-screen report sheet. Pressing back/dismiss while a detail panel is open closes the panel first; a second press dismisses the sheet.

Link copied to clipboard
fun ScanSummaryBar(state: ScannerState, modifier: Modifier = Modifier)

Top bar that shows scan progress while a scan is running and a summary of findings once it completes. Tapping the score chip opens ScanReportSheet.