registerNetworkCallback

@RequiresPermission(value = "android.permission.ACCESS_NETWORK_STATE")
fun registerNetworkCallback(callback: ConnectivityManager.NetworkCallback)

Adds a new listener that observes the current network state.

Author

Arnau Mora

Since

20220829

Parameters

callback

Will get called whenever the current network state is updated.