com.android.volley.toolbox
Class Volley
java.lang.Object
com.android.volley.toolbox.Volley
public class Volley
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Volley
public Volley()
newRequestQueue
public static RequestQueue newRequestQueue(Context context,
HttpStack stack)
- Creates a default instance of the worker pool and calls
RequestQueue.start()
on it.
- Parameters:
context
- A Context
to use for creating the cache dir.stack
- An HttpStack
to use for the network, or null for default.
- Returns:
- A started
RequestQueue
instance.
newRequestQueue
public static RequestQueue newRequestQueue(Context context)
- Creates a default instance of the worker pool and calls
RequestQueue.start()
on it.
- Parameters:
context
- A Context
to use for creating the cache dir.
- Returns:
- A started
RequestQueue
instance.