Annotation Interface GlideType
GlideExtension annotated classes that extend
com.bumptech.glide.RequestManager.
If one or more method is found with this annotation, an additional API entry point that
exposes a generated com.bumptech.glide.RequestManager subclass will be created. The
generated API entry point acts as a drop in replacement for Glide. Glide.with(fragment) becomes
GlideApp.with(fragment). Although the Glide.with variant will still be available, only the new
API entry point will provide access to these additional methods.
The name of the API entry point created when one of these methods is found can be controlled
by GlideModule.glideName().
Methods with this annotation will only be found if they are contained in a class annotated
with GlideExtension.
Methods annotated with GlideType must have a single parameter. The type of the single
parameter must be com.bumptech.glide.RequestBuilder, with a type matching the value of
value().
Compilation will fail if a method annotated with this method is identical to a method in
com.bumptech.glide.RequestManager
-
Required Element Summary
Required Elements
-
Element Details
-
value
Class<?> valueA Resource class name, like GifDrawable.class, Bitmap.class etc.Must match the type of the
com.bumptech.glide.RequestBuilderparameter in the annotated method.
-