networkObserverEnabled

fun networkObserverEnabled(enable: Boolean): ImageLoader.Builder

Enables short circuiting network requests if the device is offline.

If true, reading from the network will automatically be disabled if the device is offline. If a cached response is unavailable the request will fail with a '504 Unsatisfiable Request' response.

If false, the image loader will attempt a network request even if the device is offline.

Default: true