com.bumptech.glide.manager
Class ConnectivityMonitorFactory

java.lang.Object
  extended by com.bumptech.glide.manager.ConnectivityMonitorFactory

public class ConnectivityMonitorFactory
extends Object

A factory class that produces a functional ConnectivityMonitor if the application has the android.permission.ACCESS_NETWORK_STATE permission and a no-op non functional ConnectivityMonitor if the app does not have the required permission.


Constructor Summary
ConnectivityMonitorFactory()
           
 
Method Summary
 ConnectivityMonitor build(Context context, ConnectivityMonitor.ConnectivityListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectivityMonitorFactory

public ConnectivityMonitorFactory()
Method Detail

build

public ConnectivityMonitor build(Context context,
                                 ConnectivityMonitor.ConnectivityListener listener)