scanOnLongPress
fun Modifier.scanOnLongPress(enabled: Boolean = true, onScanRequested: () -> Unit = defaultScanRequest): Modifier
Starts a ComposeA11yScanner scan when this element is long-pressed.
The default callback quietly does nothing when the scanner is disabled or not installed. Scanner core has no dependency on gestures, sensors, framework callbacks, or Compose modifiers.
Return
Modifier with the long-press scanner trigger installed.
Parameters
enabled
Whether long-press scanning is active.
onScanRequested
Callback invoked after a long press.