com.bumptech.glide.volley
Class VolleyUrlLoader.Factory
java.lang.Object
com.bumptech.glide.volley.VolleyUrlLoader.Factory
- All Implemented Interfaces:
- ModelLoaderFactory<java.net.URL>
- Enclosing class:
- VolleyUrlLoader
public static class VolleyUrlLoader.Factory
- extends java.lang.Object
- implements ModelLoaderFactory<java.net.URL>
|
Method Summary |
ModelLoader<java.net.URL> |
build(android.content.Context context,
GenericLoaderFactory factories)
Build a concrete ModelLoader for this model type. |
protected com.android.volley.RequestQueue |
getRequestQueue(android.content.Context context)
|
java.lang.Class<? extends ModelLoader<java.net.URL>> |
loaderClass()
Get the class of the ModelLoader this factory builds. |
void |
teardown()
A lifecycle method that will be called when this factory is about to replaced |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VolleyUrlLoader.Factory
public VolleyUrlLoader.Factory()
VolleyUrlLoader.Factory
public VolleyUrlLoader.Factory(com.android.volley.RequestQueue requestQueue)
getRequestQueue
protected com.android.volley.RequestQueue getRequestQueue(android.content.Context context)
build
public ModelLoader<java.net.URL> build(android.content.Context context,
GenericLoaderFactory factories)
- Description copied from interface:
ModelLoaderFactory
- Build a concrete ModelLoader for this model type.
- Specified by:
build in interface ModelLoaderFactory<java.net.URL>
- Parameters:
context - A context that cannot be retained by the factory but can be retained by the ModelLoaderfactories - A map of classes to factories that can be used to construct additional ModelLoaders that
this factory's ModelLoader may depend on
- Returns:
- A new
ModelLoader
loaderClass
public java.lang.Class<? extends ModelLoader<java.net.URL>> loaderClass()
- Description copied from interface:
ModelLoaderFactory
- Get the class of the
ModelLoader this factory builds.
- Specified by:
loaderClass in interface ModelLoaderFactory<java.net.URL>
- Returns:
- The class of the
ModelLoader
teardown
public void teardown()
- Description copied from interface:
ModelLoaderFactory
- A lifecycle method that will be called when this factory is about to replaced
- Specified by:
teardown in interface ModelLoaderFactory<java.net.URL>