Interface NetworkTypeObserver.Listener

  • Enclosing class:
    NetworkTypeObserver

    public static interface NetworkTypeObserver.Listener
    A listener for network type changes.
    • Method Detail

      • onNetworkTypeChanged

        void onNetworkTypeChanged​(@NetworkType
                                  int networkType)
        Called when the network type changed or when the listener is first registered.

        This method is always called on the main thread.