GlideType

annotation class GlideType

Identifies methods in 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 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

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
abstract fun value(): Class<out Any>
A Resource class name, like GifDrawable.class, Bitmap.class etc.