Interface ConnectivityMonitor.ConnectivityListener

Enclosing interface:
ConnectivityMonitor

public static interface ConnectivityMonitor.ConnectivityListener
An interface for listening to network connectivity events picked up by the monitor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onConnectivityChanged(boolean isConnected)
    Called when the connectivity state changes.
  • Method Details

    • onConnectivityChanged

      void onConnectivityChanged(boolean isConnected)
      Called when the connectivity state changes.
      Parameters:
      isConnected - True if we're currently connected to a network, false otherwise.