public class Volley
extends java.lang.Object
| 构造器和说明 |
|---|
Volley() |
| 限定符和类型 | 方法和说明 |
|---|---|
static RequestQueue |
newRequestQueue(android.content.Context context)
Creates a default instance of the worker pool and calls
RequestQueue.start() on it. |
static RequestQueue |
newRequestQueue(android.content.Context context,
HttpStack stack)
Creates a default instance of the worker pool and calls
RequestQueue.start() on it. |
static RequestQueue |
newRequestQueue(android.content.Context context,
HttpStack stack,
int maxDiskCacheBytes)
Creates a default instance of the worker pool and calls
RequestQueue.start() on it. |
static RequestQueue |
newRequestQueue(android.content.Context context,
int maxDiskCacheBytes)
Creates a default instance of the worker pool and calls
RequestQueue.start() on it. |
public static RequestQueue newRequestQueue(android.content.Context context, HttpStack stack, int maxDiskCacheBytes)
RequestQueue.start() on it.
You may set a maximum size of the disk cache in bytes.context - A Context to use for creating the cache dir.stack - An HttpStack to use for the network, or null for default.maxDiskCacheBytes - the maximum size of the disk cache, in bytes. Use -1 for default size.RequestQueue instance.public static RequestQueue newRequestQueue(android.content.Context context, int maxDiskCacheBytes)
RequestQueue.start() on it.
You may set a maximum size of the disk cache in bytes.context - A Context to use for creating the cache dir.maxDiskCacheBytes - the maximum size of the disk cache, in bytes. Use -1 for default size.RequestQueue instance.public static RequestQueue newRequestQueue(android.content.Context context, HttpStack stack)
RequestQueue.start() on it.context - A Context to use for creating the cache dir.stack - An HttpStack to use for the network, or null for default.RequestQueue instance.public static RequestQueue newRequestQueue(android.content.Context context)
RequestQueue.start() on it.context - A Context to use for creating the cache dir.RequestQueue instance.