Back to Fresco

DrawableFactory

docs/javadoc/reference/com/facebook/imagepipeline/drawable/DrawableFactory.html

3.6.011.3 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Packages | Classes

Summary: Methods | [Expand All]

public interface

DrawableFactory

| com.facebook.imagepipeline.drawable.DrawableFactory |

| Known Indirect Subclasses

DefaultDrawableFactory, ExperimentalBitmapAnimationDrawableFactory

| DefaultDrawableFactory | | | ExperimentalBitmapAnimationDrawableFactory | Animation factory for AnimatedDrawable2. |

|

Class Overview

Drawable factory to create Drawables for given images.

Summary

Public Methods
abstract Drawable
Create a drawable for the given image.
abstract boolean
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

+Generated by Doclava. +