ConnectivityObserver

constructor(context: Context, hostMetaUrl: URL, processLifecycleOwner: LifecycleOwner = ProcessLifecycleOwner.get(), mainHandler: Handler = Handler(Looper.getMainLooper()), networkRequest: NetworkRequest = NetworkRequest .Builder() .addCapability(NET_CAPABILITY_INTERNET) .addTransportType(TRANSPORT_CELLULAR) .addTransportType(TRANSPORT_WIFI) .addTransportType(TRANSPORT_VPN) .build(), scope: CoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.IO))