ConnectivityMonitor
class ConnectivityMonitor(scope: CoroutineScope, source: NetworkCallbackSource = NetworkCallbackSource { emptyFlow() }) : DefaultLifecycleObserver
Process-lifecycle-aware connectivity monitor (AND-LIFE-03, D-16).
Registers/unregisters an upstream network-status source in lockstep with foreground/background transitions. In Phase 34 the NetworkCallbackSource adapter wraps ConnectivityManager.registerDefaultNetworkCallback(...) and unregisterNetworkCallback(...); Plan 04 only wires the observer scaffold so the unit test can verify the start/stop contract.
Threat mitigations:
T-33-13:
listenJobcancelled in onStop — callback unregistered when adapter is shipped in Phase 34.
Constructors
Link copied to clipboard
constructor(scope: CoroutineScope, source: NetworkCallbackSource = NetworkCallbackSource { emptyFlow() })