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 から継承されたメソッド |
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 imagelistener
- Listener to receive the decoded bitmapmaxWidth
- Maximum width to decode this bitmap to, or zero for nonemaxHeight
- Maximum height to decode this bitmap to, or zero for
nonedecodeConfig
- Format to decode the bitmap toerrorListener
- 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