@Deprecated public class OkHttpGlideModule extends 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
.
构造器和说明 |
---|
OkHttpGlideModule()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
void |
applyOptions(Context context,
GlideBuilder builder)
已过时。
Lazily apply options to a
GlideBuilder immediately before the Glide
singleton is created. |
void |
registerComponents(Context context,
Glide glide,
Registry registry)
已过时。
Lazily register components immediately after the Glide singleton is created but before any
requests can be started.
|
public void applyOptions(@NonNull 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.