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,
HttpStack stack)
Creates a default instance of the worker pool and calls
RequestQueue.start() on it. |
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.