public interface

DrawableFactory

com.facebook.drawee.backends.pipeline.DrawableFactory
Known Indirect Subclasses

Class Overview

Drawable factory to create Drawables for given images.

Summary

Public Methods
abstract Drawable createDrawable(CloseableImage image)
Create a drawable for the given image.
abstract boolean supportsImageType(CloseableImage image)
Returns true if the factory can create a Drawable for the given image.

Public Methods

public abstract Drawable createDrawable (CloseableImage image)

Create a drawable for the given image. It is guaranteed that this method is only called if supportsImageType(CloseableImage) returned true.

Parameters
image the image to create the drawable for
Returns
  • the Drawable for the image or null if an error occurred

public abstract boolean supportsImageType (CloseableImage image)

Returns true if the factory can create a Drawable for the given image.

Parameters
image the image to check
Returns
  • true if a Drawable can be created