java.lang.Object | ||
↳ | com.facebook.drawee.controller.AbstractDraweeController<T, INFO> | |
↳ | com.facebook.drawee.backends.pipeline.PipelineDraweeController |
Drawee controller that bridges the image pipeline with SettableDraweeHierarchy
.
The hierarchy's actual image is set to the image(s) obtained by the provided data source. The data source is automatically obtained and closed based on attach / detach calls.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PipelineDraweeController(Resources resources, DeferredReleaser deferredReleaser, AnimatedDrawableFactory animatedDrawableFactory, Executor uiThreadExecutor, MemoryCache<CacheKey, CloseableImage> memoryCache, Supplier<DataSource<CloseableReference<CloseableImage>>> dataSourceSupplier, String id, CacheKey cacheKey, Object callerContext) | |||||||||||
PipelineDraweeController(Resources resources, DeferredReleaser deferredReleaser, AnimatedDrawableFactory animatedDrawableFactory, Executor uiThreadExecutor, MemoryCache<CacheKey, CloseableImage> memoryCache, Supplier<DataSource<CloseableReference<CloseableImage>>> dataSourceSupplier, String id, CacheKey cacheKey, Object callerContext, ImmutableList<DrawableFactory> drawableFactories) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
initialize(Supplier<DataSource<CloseableReference<CloseableImage>>> dataSourceSupplier, String id, CacheKey cacheKey, Object callerContext)
Initializes this controller with the new data source supplier, id and caller context.
| ||||||||||
String | toString() |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Drawable | createDrawable(CloseableReference<CloseableImage> image) | ||||||||||
CloseableReference<CloseableImage> | getCachedImage() | ||||||||||
DataSource<CloseableReference<CloseableImage>> | getDataSource() | ||||||||||
int | getImageHash(CloseableReference<CloseableImage> image) | ||||||||||
ImageInfo | getImageInfo(CloseableReference<CloseableImage> image) | ||||||||||
Resources | getResources() | ||||||||||
void | releaseDrawable(Drawable drawable) | ||||||||||
void | releaseImage(CloseableReference<CloseableImage> image) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Initializes this controller with the new data source supplier, id and caller context. This allows for reusing of the existing controller instead of instantiating a new one. This method should be called when the controller is in detached state.
dataSourceSupplier | data source supplier |
---|---|
id | unique id for this controller |
callerContext | tag and context for this controller |