Home | History | Annotate | Download | only in manager
      1 package com.bumptech.glide.manager;
      2 
      3 /**
      4  * An interface for monitoring network connectivity events.
      5  */
      6 public interface ConnectivityMonitor extends LifecycleListener {
      7 
      8     /**
      9      * An interface for listening to network connectivity events picked up by the monitor.
     10      */
     11     interface ConnectivityListener {
     12         /**
     13          * Called when the connectivity state changes.
     14          *
     15          * @param isConnected True if we're currently connected to a network, false otherwise.
     16          */
     17         void onConnectivityChanged(boolean isConnected);
     18     }
     19 }
     20