public class

VolleyDraweeControllerBuilder

extends AbstractDraweeControllerBuilder<BUILDER extends AbstractDraweeControllerBuilder<BUILDER, REQUEST, IMAGE, INFO>, REQUEST, IMAGE, INFO>
java.lang.Object
   ↳ com.facebook.drawee.controller.AbstractDraweeControllerBuilder<BUILDER extends com.facebook.drawee.controller.AbstractDraweeControllerBuilder<BUILDER, REQUEST, IMAGE, INFO>, REQUEST, IMAGE, INFO>
     ↳ com.facebook.drawee.backends.volley.VolleyDraweeControllerBuilder

Class Overview

Concrete implementation of Volley Drawee controller builder.

See AbstractDraweeControllerBuilder for more details.

Summary

Public Constructors
VolleyDraweeControllerBuilder(Context context, ImageLoader imageLoader, VolleyDraweeControllerFactory volleyDraweeControllerFactory, Set<ControllerListener> boundControllerListeners)
Public Methods
VolleyDraweeControllerBuilder setUri(String uriString)
VolleyDraweeControllerBuilder setUri(Uri uri)
Protected Methods
DataSource<Bitmap> getDataSourceForRequest(Uri imageRequest, Object callerContext, AbstractDraweeControllerBuilder.CacheLevel cacheLevel)
Concrete builder classes should override this method to return a data source for the request.
VolleyDraweeControllerBuilder getThis()
Concrete builder classes should override this method to return {#code this}.
VolleyDraweeController obtainController()
Concrete builder classes should override this method to return a new controller.
[Expand]
Inherited Methods
From class com.facebook.drawee.controller.AbstractDraweeControllerBuilder
From class java.lang.Object
From interface com.facebook.drawee.interfaces.SimpleDraweeControllerBuilder

Public Constructors

public VolleyDraweeControllerBuilder (Context context, ImageLoader imageLoader, VolleyDraweeControllerFactory volleyDraweeControllerFactory, Set<ControllerListener> boundControllerListeners)

Public Methods

public VolleyDraweeControllerBuilder setUri (String uriString)

public VolleyDraweeControllerBuilder setUri (Uri uri)

Protected Methods

protected DataSource<Bitmap> getDataSourceForRequest (Uri imageRequest, Object callerContext, AbstractDraweeControllerBuilder.CacheLevel cacheLevel)

Concrete builder classes should override this method to return a data source for the request.

IMPORTANT: Do NOT ever call this method directly. This method is only to be called from a supplier created in {#code getDataSourceSupplierForRequest(REQUEST, boolean)}.

IMPORTANT: Make sure that you do NOT use any non-final field from this method, as the field may change if the instance of this builder gets reused. If any such field is required, override {#code getDataSourceSupplierForRequest(REQUEST, boolean)}, and store the field in a final variable (same as it is done for callerContext).

protected VolleyDraweeControllerBuilder getThis ()

Concrete builder classes should override this method to return {#code this}.

protected VolleyDraweeController obtainController ()

Concrete builder classes should override this method to return a new controller.