scan

fun scan(): Flow<ScannerState>

Returns a Flow of ScannerState for the most recently installed activity.

The backing kotlinx.coroutines.flow.SharedFlow has replay = 1, so late subscribers immediately receive the current state. Returns an empty flow when no scanner is installed.

Throws

in non-debug builds or if called before install.