Class AppGlideModule
- java.lang.Object
-
- com.bumptech.glide.module.LibraryGlideModule
-
- com.bumptech.glide.module.AppGlideModule
-
public abstract class AppGlideModule extends LibraryGlideModule
Defines a set of dependencies and options to use when initializing Glide within an application.There can be at most one
AppGlideModulein an application. Only Applications can include aAppGlideModule. Libraries must useLibraryGlideModule.Classes that extend
AppGlideModulemust be annotated withGlideModuleto be processed correctly.Classes that extend
AppGlideModulecan optionally be annotated withExcludesto optionally exclude one or moreLibraryGlideModuleand/orGlideModuleclasses.Once an application has migrated itself and all libraries it depends on to use Glide's annotation processor,
AppGlideModuleimplementations should overrideisManifestParsingEnabled()and returnfalse.
-
-
Constructor Summary
Constructors Constructor Description AppGlideModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyOptions(android.content.Context context, GlideBuilder builder)booleanisManifestParsingEnabled()Returnstrueif Glide should check the AndroidManifest forGlideModules.-
Methods inherited from class com.bumptech.glide.module.LibraryGlideModule
registerComponents
-
-
-
-
Method Detail
-
isManifestParsingEnabled
public boolean isManifestParsingEnabled()
Returnstrueif Glide should check the AndroidManifest forGlideModules.Implementations should return
falseafter they and their dependencies have migrated to Glide's annotation processor.Returns
trueby default.
-
applyOptions
public void applyOptions(@NonNull android.content.Context context, @NonNull GlideBuilder builder)
-
-