Annotation Type GlideType
-
@Target(METHOD) @Retention(CLASS) public @interface GlideTypeIdentifies methods inGlideExtensionannotated classes that extendcom.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.RequestManagersubclass 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 ofvalue().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 Modifier and Type Required Element Description java.lang.Class<?>valueA Resource class name, like GifDrawable.class, Bitmap.class etc.
-