public class Volley
extends java.lang.Object
| Constructor and Description |
|---|
Volley() |
| Modifier and Type | Method and Description |
|---|---|
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,
BaseHttpStack stack)
Creates a default instance of the worker pool and calls
RequestQueue.start() on it. |
static RequestQueue |
newRequestQueue(android.content.Context context,
HttpStack stack)
Deprecated.
Use
newRequestQueue(Context, BaseHttpStack) instead to avoid depending
on Apache HTTP. This method may be removed in a future release of Volley. |
@NonNull public static RequestQueue newRequestQueue(android.content.Context context, BaseHttpStack stack)
RequestQueue.start() on it.context - A Context to use for creating the cache dir.stack - A BaseHttpStack to use for the network, or null for default.RequestQueue instance.@Deprecated @NonNull public static RequestQueue newRequestQueue(android.content.Context context, HttpStack stack)
newRequestQueue(Context, BaseHttpStack) instead to avoid depending
on Apache HTTP. This method may be removed in a future release of Volley.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.@NonNull public static RequestQueue newRequestQueue(android.content.Context context)
RequestQueue.start() on it.context - A Context to use for creating the cache dir.RequestQueue instance.