Back to Fresco

DelegatingConsumer

docs/javadoc/reference/com/facebook/imagepipeline/producers/DelegatingConsumer.html

3.6.026.1 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

Summary: Inherited Constants | Ctors | Methods | Protected Methods | Inherited Methods | [Expand All]

public abstract class

DelegatingConsumer

extends BaseConsumer<T>

| java.lang.Object | | ↳ | com.facebook.imagepipeline.producers.BaseConsumer<T> | | | ↳ | com.facebook.imagepipeline.producers.DelegatingConsumer<I, O> |

| Known Direct Subclasses

PostprocessedBitmapMemoryCacheProducer.CachedPostprocessorConsumer

| PostprocessedBitmapMemoryCacheProducer.CachedPostprocessorConsumer | |

|

Class Overview

Delegating consumer.

Summary

| [Expand] Inherited Constants | | --- | | From interface com.facebook.imagepipeline.producers.Consumer

| int | DO_NOT_CACHE_ENCODED | Status flag to show the result should not be cached in disk or encoded caches, even if it's the last result. | | int | IS_LAST | Status flag to show whether the result being received is the last one coming or to expect more. | | int | IS_PARTIAL_RESULT | Status flag to show the result does not represent the whole image, just part of it. | | int | IS_PLACEHOLDER | Status flag to show whether the result is a placeholder for the final result. | | int | IS_RESIZING_DONE | Status flag that indicates whether the given image has been resized. | | int | NO_FLAGS | Convenience constant for a status with no flags set. |

|

Public Constructors
Public Methods
Consumer<O>
Protected Methods
void
Called by onCancellation, override this method instead
void
Called by onFailure, override this method instead
void
Called when the progress updates

| [Expand] Inherited Methods | | --- | | From class com.facebook.imagepipeline.producers.BaseConsumer

| static boolean | isLast(int status) Checks whether the provided status includes the IS_LAST flag, marking this as the last result the consumer will receive. | | static boolean | isNotLast(int status) Checks whether the provided status includes the IS_LAST flag, marking this as the last result the consumer will receive. | | synchronized void | onCancellation() Called by a producer whenever it is cancelled and won't produce any more results | | abstract void | onCancellationImpl() Called by onCancellation, override this method instead | | synchronized void | onFailure(Throwable t) Called by a producer whenever it terminates further work due to Throwable being thrown. | | abstract void | onFailureImpl(Throwable t) Called by onFailure, override this method instead | | synchronized void | onNewResult(T newResult, int status) Called by a producer whenever new data is produced. | | abstract void | onNewResultImpl(T newResult, int status) Called by onNewResult, override this method instead. | | synchronized void | onProgressUpdate(float progress) Called when the progress updates. | | void | onProgressUpdateImpl(float progress) Called when the progress updates | | void | onUnhandledException(Exception e) Called whenever onNewResultImpl or onFailureImpl throw an exception | | static int | simpleStatusForIsLast(boolean isLast) Creates a simple status value which only identifies whether this is the last result. | | static boolean | statusHasAnyFlag(int status, int flag) Checks whether the provided status contains any of the specified flags. | | static boolean | statusHasFlag(int status, int flag) Checks whether the provided status contains a specified flag. | | static int | turnOffStatusFlag(int status, int flag) Updates a provided status by ensuring the specified flag is turned off. | | static int | turnOnStatusFlag(int status, int flag) Updates a provided status by ensuring the specified flag is turned on. |

| | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.imagepipeline.producers.Consumer

| abstract void | onCancellation() Called by a producer whenever it is cancelled and won't produce any more results | | abstract void | onFailure(Throwable t) Called by a producer whenever it terminates further work due to Throwable being thrown. | | abstract void | onNewResult(T newResult, int status) Called by a producer whenever new data is produced. | | abstract void | onProgressUpdate(float progress) Called when the progress updates. |

|

Public Constructors

public DelegatingConsumer(Consumer<O> consumer)

Public Methods

public Consumer<O> getConsumer()

Protected Methods

protected void onCancellationImpl()

Called by onCancellation, override this method instead

protected void onFailureImpl(Throwable t)

Called by onFailure, override this method instead

protected void onProgressUpdateImpl(float progress)

Called when the progress updates

+Generated by Doclava. +