com.android.volley.toolbox
クラス ImageRequest

java.lang.Object
  上位を拡張 com.android.volley.Request<Bitmap>
      上位を拡張 com.android.volley.toolbox.ImageRequest
すべての実装されたインタフェース:
java.lang.Comparable<Request<Bitmap>>

public class ImageRequest
extends Request<Bitmap>

A canned request for getting an image at a given URL and calling back with a decoded Bitmap.


入れ子のクラスの概要
 
クラス com.android.volley.Request から継承された入れ子のクラス/インタフェース
Request.Method, Request.Priority
 
コンストラクタの概要
ImageRequest(java.lang.String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, Config decodeConfig, Response.ErrorListener errorListener)
          Creates a new image request, decoding to a maximum specified width and height.
 
メソッドの概要
 Request.Priority getPriority()
          Returns the Request.Priority of this request; Request.Priority.NORMAL by default.
 
クラス com.android.volley.Request から継承されたメソッド
addMarker, cancel, compareTo, deliverError, getBody, getBodyContentType, getCacheEntry, getCacheKey, getHeaders, getMethod, getPostBody, getPostBodyContentType, getRetryPolicy, getSequence, getTag, getTimeoutMs, getTrafficStatsTag, getUrl, hasHadResponseDelivered, isCanceled, markDelivered, setCacheEntry, setRequestQueue, setRetryPolicy, setSequence, setShouldCache, setTag, shouldCache, toString
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ImageRequest

public ImageRequest(java.lang.String url,
                    Response.Listener<Bitmap> listener,
                    int maxWidth,
                    int maxHeight,
                    Config decodeConfig,
                    Response.ErrorListener errorListener)
Creates a new image request, decoding to a maximum specified width and height. If both width and height are zero, the image will be decoded to its natural size. If one of the two is nonzero, that dimension will be clamped and the other one will be set to preserve the image's aspect ratio. If both width and height are nonzero, the image will be decoded to be fit in the rectangle of dimensions width x height while keeping its aspect ratio.

パラメータ:
url - URL of the image
listener - Listener to receive the decoded bitmap
maxWidth - Maximum width to decode this bitmap to, or zero for none
maxHeight - Maximum height to decode this bitmap to, or zero for none
decodeConfig - Format to decode the bitmap to
errorListener - Error listener, or null to ignore errors
メソッドの詳細

getPriority

public Request.Priority getPriority()
クラス Request の記述:
Returns the Request.Priority of this request; Request.Priority.NORMAL by default.

オーバーライド:
クラス Request<Bitmap> 内の getPriority