@Deprecated public class OkHttpGlideModule extends java.lang.Object implements GlideModule
GlideModule implementation to replace Glide's default HttpURLConnection based ModelLoader with an
OkHttp based ModelLoader.
If you're using gradle, you can include this module simply by depending on the aar, the module
will be merged in by manifest merger. For other build systems or for more more information, see
GlideModule.
| Constructor and Description |
|---|
OkHttpGlideModule()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyOptions(android.content.Context context,
GlideBuilder builder)
Deprecated.
Lazily apply options to a
GlideBuilder immediately before the Glide
singleton is created. |
void |
registerComponents(android.content.Context context,
Glide glide,
Registry registry)
Deprecated.
Lazily register components immediately after the Glide singleton is created but before any
requests can be started.
|
public void applyOptions(@NonNull
android.content.Context context,
@NonNull
GlideBuilder builder)
GlideBuilder immediately before the Glide
singleton is created.
This method will be called once and only once per implementation.
context - An Application Context.builder - The GlideBuilder that will be used to create Glide.public void registerComponents(android.content.Context context,
Glide glide,
Registry registry)
This method will be called once and only once per implementation.
context - An Application Context.glide - The Glide singleton that is in the process of being initialized.registry - An Registry to use to register components.