A11yScannerScaffold

fun A11yScannerScaffold(scannerController: A11yScannerController, config: ScannerConfig, modifier: Modifier = Modifier, issueOffsetY: Int = 0, summaryBarTopOffset: Dp = 0.dp, inspectionToggleBottomOffset: Dp = 0.dp, content: @Composable () -> Unit)

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

Layer order (back to front):

  1. content — the host screen being inspected

  2. A11yIssueOverlay — colored highlight boxes over flagged nodes

  3. ScanSummaryBar — pinned at the top; slides in once scanning begins

  4. IssueDetailPanel — slides up from the bottom when an overlay box is tapped

ScanReportSheet is opened by tapping the score chip inside ScanSummaryBar.

A new scan starts automatically when the scaffold enters composition and again whenever config changes. The in-flight scan is stopped when the scaffold leaves composition.

Parameters

scannerController

Controller that runs scans and exposes scanner state.

config

Scanner configuration applied to the controller.

modifier

Modifier applied to the root scaffold.

issueOffsetY

Vertical offset applied to issue highlights.

summaryBarTopOffset

Additional distance between the status bar and the scan summary. Use this when host content has a top app bar that must remain visible while scan results are shown.

inspectionToggleBottomOffset

Extra space above host bottom navigation for the toggle.

content

Host UI content being scanned.