AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | Private 属性 | 所有成员列表
com.ab.image.toolbox.ImageLoader.BatchedImageRequest类 参考

Public 成员函数

 BatchedImageRequest (Request<?> request, ImageContainer container)
 
void setError (VolleyError error)
 
VolleyError getError ()
 
void addContainer (ImageContainer container)
 
boolean removeContainerAndCancelIfNecessary (ImageContainer container)
 

Private 属性

final Request<?> mRequest
 
Bitmap mResponseBitmap
 
VolleyError mError
 
final LinkedList< ImageContainermContainers = new LinkedList<ImageContainer>()
 

详细描述

Wrapper class used to map a Request to the set of active ImageContainer objects that are interested in its results.

构造及析构函数说明

com.ab.image.toolbox.ImageLoader.BatchedImageRequest.BatchedImageRequest ( Request<?>  request,
ImageContainer  container 
)
inline

Constructs a new BatchedImageRequest object

参数
requestThe request being tracked
containerThe ImageContainer of the person who initiated the request.

成员函数说明

void com.ab.image.toolbox.ImageLoader.BatchedImageRequest.addContainer ( ImageContainer  container)
inline

Adds another ImageContainer to the list of those interested in the results of the request.

VolleyError com.ab.image.toolbox.ImageLoader.BatchedImageRequest.getError ( )
inline

Get the error for this response

boolean com.ab.image.toolbox.ImageLoader.BatchedImageRequest.removeContainerAndCancelIfNecessary ( ImageContainer  container)
inline

Detatches the bitmap container from the request and cancels the request if no one is left listening.

参数
containerThe container to remove from the list
返回
True if the request was canceled, false otherwise.
void com.ab.image.toolbox.ImageLoader.BatchedImageRequest.setError ( VolleyError  error)
inline

Set the error for this response

类成员变量说明

final LinkedList<ImageContainer> com.ab.image.toolbox.ImageLoader.BatchedImageRequest.mContainers = new LinkedList<ImageContainer>()
private

List of all of the active ImageContainers that are interested in the request

VolleyError com.ab.image.toolbox.ImageLoader.BatchedImageRequest.mError
private

Error if one occurred for this response

final Request<?> com.ab.image.toolbox.ImageLoader.BatchedImageRequest.mRequest
private

The request being tracked

Bitmap com.ab.image.toolbox.ImageLoader.BatchedImageRequest.mResponseBitmap
private

The result of the request being tracked by this item


该类的文档由以下文件生成: