fun stop() { // Framework code will throw if an unregistered listener attempts to unregister. if (!isRegistered) return connectivityManager.unregisterNetworkCallback(frameworkListener) isRegistered = false lastKnownStateWasAvailable = null callbacks.clear() }
Detatches the [WifiConnectionMonitor] from the app. No callbacks added via [addOnWifiConnectedChangedListener] will be called after this has been called.