| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
Public 成员函数 | 所有成员列表
com.ab.image.toolbox.ImageLoader.ImageListener接口 参考
类 com.ab.image.toolbox.ImageLoader.ImageListener 继承关系图:

## Public 成员函数
void | onResponse (ImageContainer response, boolean isImmediate)

## 详细描述

Interface for the response handlers on image requests.

The call flow is this:

1. Upon being attached to a request, onResponse(response, true) will be invoked to reflect any cached data that was already available. If the data was available, response.getBitmap() will be non-null.
2. After a network response returns, only one of the following cases will happen:
   - onResponse(response, false) will be called if the image was loaded. or
   - onErrorResponse will be called if there was an error loading the image.

## 成员函数说明

void com.ab.image.toolbox.ImageLoader.ImageListener.onResponse | ( | ImageContainer | response,
|  | boolean | isImmediate
| ) |  |

Listens for non-error changes to the loading of the image request.

参数

  response | Holds all information pertaining to the request, as well as the bitmap (if it is loaded).
  isImmediate | True if this was called during ImageLoader.get() variants. This can be used to differentiate between a cached image loading and a network image loading in order to, for example, run an animation to fade in network loaded images.

该接口的文档由以下文件生成:

- src/com/ab/image/toolbox/ImageLoader.java