public abstract class BitmapCallback extends AbsCallback<android.graphics.Bitmap>
| 构造器和说明 |
|---|
BitmapCallback() |
BitmapCallback(int maxWidth,
int maxHeight) |
BitmapCallback(int maxWidth,
int maxHeight,
android.graphics.Bitmap.Config decodeConfig,
android.widget.ImageView.ScaleType scaleType) |
| 限定符和类型 | 方法和说明 |
|---|---|
android.graphics.Bitmap |
convertResponse(Response response)
拿到响应后,将数据转换成需要的格式,子线程中执行,可以是耗时操作
|
downloadProgress, onCacheSuccess, onError, onFinish, onStart, uploadProgresspublic BitmapCallback()
public BitmapCallback(int maxWidth,
int maxHeight)
public BitmapCallback(int maxWidth,
int maxHeight,
android.graphics.Bitmap.Config decodeConfig,
android.widget.ImageView.ScaleType scaleType)
public android.graphics.Bitmap convertResponse(Response response)
throws java.lang.Throwable
Converterresponse - 需要转换的对象java.lang.Exception - 转换过程发生的异常java.lang.Throwable