ConnectivityMonitor

Creates the Android monitor, backed by ConnectivityManager.registerDefaultNetworkCallback. Create one per process: every monitor registers its own callback, and Android limits an app to about 100.

Safe to call with an Activity: only context.applicationContext is kept.

Throws

if the configuration is invalid.


Builds the configuration with block and creates the Android monitor; see the overload above.