Package tvi.webrtc

Interface NetworkChangeDetector.Observer

  • Enclosing interface:
    NetworkChangeDetector

    public static interface NetworkChangeDetector.Observer
    Observer interface by which observer is notified of network changes.
    • Method Detail

      • onNetworkDisconnect

        void onNetworkDisconnect​(long networkHandle)
      • onNetworkPreference

        void onNetworkPreference​(java.util.List<NetworkChangeDetector.ConnectionType> types,
                                 int preference)
        Called when network preference change for a (list of) connection type(s). (e.g WIFI) is |NOT_PREFERRED| or |NEUTRAL|.

        note: |types| is a list of ConnectionTypes, so that all cellular types can be modified in one call.