Back to Fresco

NetworkFetcher.Callback

docs/javadoc/reference/com/facebook/imagepipeline/producers/NetworkFetcher.Callback.html

3.6.018.7 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

public static interface

NetworkFetcher.Callback

| com.facebook.imagepipeline.producers.NetworkFetcher.Callback |

Class Overview

Callback used to inform the network fetch producer.

Summary

Public Methods
abstract void
Called upon a cancellation of the request.
abstract void
Called upon a failure in the network stack.
abstract void
Called upon a response from the network stack.

Public Methods

public abstract void onCancellation()

Called upon a cancellation of the request.

public abstract void onFailure(Throwable throwable)

Called upon a failure in the network stack.

Parameters

| throwable | the cause of failure |

public abstract void onResponse(InputStream response, int responseLength)

Called upon a response from the network stack.

Parameters

| response | the InputStream for the data | | responseLength | the length of the data if known, -1 otherwise |

Throws

| IOException | |

+Generated by Doclava. +