use of com.facebook.drawee.controller.AbstractDraweeControllerBuilder in project fresco by facebook.
the class SimpleDraweeView method setImageRequest.
/**
* Sets the image request
*
* @param request Image Request
*/
public void setImageRequest(ImageRequest request) {
AbstractDraweeControllerBuilder controllerBuilder = mControllerBuilder;
DraweeController controller = controllerBuilder.setImageRequest(request).setOldController(getController()).build();
setController(controller);
}
use of com.facebook.drawee.controller.AbstractDraweeControllerBuilder in project fresco by facebook.
the class InstrumentedDraweeView method setImageURI.
@Override
public void setImageURI(Uri uri, @Nullable Object callerContext) {
SimpleDraweeControllerBuilder controllerBuilder = getControllerBuilder().setUri(uri).setCallerContext(callerContext).setOldController(getController());
if (controllerBuilder instanceof AbstractDraweeControllerBuilder) {
((AbstractDraweeControllerBuilder<?, ?, ?, ?>) controllerBuilder).setControllerListener(mListener);
}
setController(controllerBuilder.build());
}
use of com.facebook.drawee.controller.AbstractDraweeControllerBuilder in project fresco by facebook.
the class InstrumentedDraweeView method setImageURI.
@Override
public void setImageURI(Uri uri, @Nullable Object callerContext) {
SimpleDraweeControllerBuilder controllerBuilder = getControllerBuilder().setUri(uri).setCallerContext(callerContext).setOldController(getController());
if (mConfig.instrumentationEnabled && controllerBuilder instanceof AbstractDraweeControllerBuilder) {
((AbstractDraweeControllerBuilder<?, ?, ?, ?>) controllerBuilder).setControllerListener(mListener);
}
setController(controllerBuilder.build());
}
Aggregations