public class

VolleyDraweeController

extends AbstractDraweeController<T, INFO>
java.lang.Object
   ↳ com.facebook.drawee.controller.AbstractDraweeController<T, INFO>
     ↳ com.facebook.drawee.backends.volley.VolleyDraweeController

Class Overview

Drawee controller that bridges Volley 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.

Summary

Public Constructors
VolleyDraweeController(Resources resources, DeferredReleaser deferredReleaser, Executor uiThreadExecutor, Supplier<DataSource<Bitmap>> dataSourceSupplier, String id, Object callerContext)
Public Methods
void initialize(Supplier<DataSource<Bitmap>> dataSourceSupplier, String id, Object callerContext)
Initializes this controller with the new data source supplier, id and caller context.
String toString()
Protected Methods
Drawable createDrawable(Bitmap image)
DataSource<Bitmap> getDataSource()
int getImageHash(Bitmap image)
Bitmap getImageInfo(Bitmap image)
Resources getResources()
void releaseDrawable(Drawable drawable)
void releaseImage(Bitmap image)
[Expand]
Inherited Methods
From class com.facebook.drawee.controller.AbstractDraweeController
From class java.lang.Object
From interface com.facebook.drawee.components.DeferredReleaser.Releasable
From interface com.facebook.drawee.gestures.GestureDetector.ClickListener
From interface com.facebook.drawee.interfaces.DraweeController

Public Constructors

public VolleyDraweeController (Resources resources, DeferredReleaser deferredReleaser, Executor uiThreadExecutor, Supplier<DataSource<Bitmap>> dataSourceSupplier, String id, Object callerContext)

Public Methods

public void initialize (Supplier<DataSource<Bitmap>> dataSourceSupplier, String id, Object callerContext)

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.

Parameters
dataSourceSupplier data source supplier
id unique id for this controller
callerContext tag and context for this controller

public String toString ()

Protected Methods

protected Drawable createDrawable (Bitmap image)

protected DataSource<Bitmap> getDataSource ()

protected int getImageHash (Bitmap image)

protected Bitmap getImageInfo (Bitmap image)

protected Resources getResources ()

protected void releaseDrawable (Drawable drawable)

protected void releaseImage (Bitmap image)