com.bumptech.glide.manager.ConnectivityMonitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glide Show documentation
Show all versions of glide Show documentation
A fast and efficient image loading library for Android focused on smooth scrolling.
package com.bumptech.glide.manager;
/**
* An interface for monitoring network connectivity events.
*/
public interface ConnectivityMonitor extends LifecycleListener {
/**
* An interface for listening to network connectivity events picked up by the monitor.
*/
interface ConnectivityListener {
/**
* Called when the connectivity state changes.
*
* @param isConnected True if we're currently connected to a network, false otherwise.
*/
void onConnectivityChanged(boolean isConnected);
}
}