public static class OkHttpUrlLoader.Factory extends Object implements ModelLoaderFactory<GlideUrl,InputStream>
OkHttpUrlLoaders.| Constructor and Description |
|---|
Factory()
Constructor for a new Factory that runs requests using a static singleton client.
|
Factory(Call.Factory client)
Constructor for a new Factory that runs requests using given client.
|
| Modifier and Type | Method and Description |
|---|---|
ModelLoader<GlideUrl,InputStream> |
build(MultiModelLoaderFactory multiFactory)
Build a concrete ModelLoader for this model type.
|
void |
teardown()
A lifecycle method that will be called when this factory is about to replaced.
|
public Factory()
public Factory(Call.Factory client)
client - this is typically an instance of OkHttpClient.public ModelLoader<GlideUrl,InputStream> build(MultiModelLoaderFactory multiFactory)
ModelLoaderFactorybuild in interface ModelLoaderFactory<GlideUrl,InputStream>multiFactory - A map of classes to factories that can be used to construct additional
ModelLoaders that this factory's ModelLoader may depend onModelLoaderpublic void teardown()
ModelLoaderFactoryteardown in interface ModelLoaderFactory<GlideUrl,InputStream>