Package 

Interface ConnectivityMonitor.Listener

    • Method Summary

      Modifier and Type Method Description
      abstract void onConnectivityChanged(boolean connected, @Nullable() NetworkInfo networkInfo) This method will be called whenever the host device's network connectivity state changes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onConnectivityChanged

         abstract void onConnectivityChanged(boolean connected, @Nullable() NetworkInfo networkInfo)

        This method will be called whenever the host device's network connectivity state changes.

        Parameters:
        connected - true if the host is currently connected to the network.
        networkInfo - detailed information about the current network connection.