PageRenderTime 25ms CodeModel.GetById 15ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/UniversalImageLoader/src/com/nostra13/universalimageloader/core/ImageLoadingInfo.java

https://github.com/rashedulkabir/Android-Universal-Image-Loader
Java | 34 lines | 21 code | 5 blank | 8 comment | 0 complexity | b0e215f0547c21784e58f874451f0498 MD5 | raw file
 1package com.nostra13.universalimageloader.core;
 2
 3import android.widget.ImageView;
 4
 5import com.nostra13.universalimageloader.core.assist.ImageLoadingListener;
 6import com.nostra13.universalimageloader.core.assist.ImageSize;
 7import com.nostra13.universalimageloader.core.assist.MemoryCacheKeyUtil;
 8
 9/**
10 * Information for load'n'display image task
11 * 
12 * @author Sergey Tarasevich (nostra13[at]gmail[dot]com)
13 * @see MemoryCacheKeyUtil
14 * @see DisplayImageOptions
15 * @see ImageLoadingListener
16 */
17final class ImageLoadingInfo {
18
19	final String uri;
20	final String memoryCacheKey;
21	final ImageView imageView;
22	final ImageSize targetSize;
23	final DisplayImageOptions options;
24	final ImageLoadingListener listener;
25
26	public ImageLoadingInfo(String uri, ImageView imageView, ImageSize targetSize, DisplayImageOptions options, ImageLoadingListener listener) {
27		this.uri = uri;
28		this.imageView = imageView;
29		this.targetSize = targetSize;
30		this.options = options;
31		this.listener = listener;
32		memoryCacheKey = MemoryCacheKeyUtil.generateKey(uri, targetSize);
33	}
34}