Listener

interface Listener

The contract of a listener that can receive callback notifications from the ConnectivityMonitor

Functions

Link copied to clipboard
abstract fun onConnectivityChanged(connected: Boolean, networkInfo: NetworkInfo)
This method will be called whenever the host device's network connectivity state changes.