com.bumptech.glide.integration.okhttp3
Class OkHttpUrlLoader.Factory
java.lang.Object
com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader.Factory
- All Implemented Interfaces:
- com.bumptech.glide.load.model.ModelLoaderFactory<com.bumptech.glide.load.model.GlideUrl,InputStream>
- Enclosing class:
- OkHttpUrlLoader
public static class OkHttpUrlLoader.Factory
- extends Object
- implements com.bumptech.glide.load.model.ModelLoaderFactory<com.bumptech.glide.load.model.GlideUrl,InputStream>
The default factory for OkHttpUrlLoaders.
|
Constructor Summary |
OkHttpUrlLoader.Factory()
Constructor for a new Factory that runs requests using a static singleton client. |
OkHttpUrlLoader.Factory(okhttp3.Call.Factory client)
Constructor for a new Factory that runs requests using given client. |
|
Method Summary |
com.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,InputStream> |
build(android.content.Context context,
com.bumptech.glide.load.model.GenericLoaderFactory factories)
|
void |
teardown()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OkHttpUrlLoader.Factory
public OkHttpUrlLoader.Factory()
- Constructor for a new Factory that runs requests using a static singleton client.
OkHttpUrlLoader.Factory
public OkHttpUrlLoader.Factory(okhttp3.Call.Factory client)
- Constructor for a new Factory that runs requests using given client.
- Parameters:
client - this is typically an instance of OkHttpClient.
build
public com.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,InputStream> build(android.content.Context context,
com.bumptech.glide.load.model.GenericLoaderFactory factories)
- Specified by:
build in interface com.bumptech.glide.load.model.ModelLoaderFactory<com.bumptech.glide.load.model.GlideUrl,InputStream>
teardown
public void teardown()
- Specified by:
teardown in interface com.bumptech.glide.load.model.ModelLoaderFactory<com.bumptech.glide.load.model.GlideUrl,InputStream>