statusFlow

@get:RequiresPermission(value = "android.permission.ACCESS_NETWORK_STATE")
val statusFlow: Flow<NetworkStatus>(source)

A Flow that emits NetworkStatus whenever the network connectivity changes. It emits the current status immediately upon subscription.

The ACCESS_NETWORK_STATE permission must be declared in the Manifest.