scan
Returns scanner state for the latest resumed automatic activity, or the latest surviving manual installation when automatic routing has no active entry.
The backing kotlinx.coroutines.flow.SharedFlow has replay = 1, so late subscribers immediately receive the current state. The returned flow can be collected before automatic installation; it begins forwarding state when an activity scanner becomes available.
Throws
when the scanner is denied by the current build/toggle policy, or when automatic initialization is disabled and this is called before install.