@Target(value=METHOD) @Retention(value=CLASS) public @interface GlideType
GlideExtension
annotated classes that extend
RequestManager
.
If one or more method is found with this annotation, an additional API entry point that
exposes a generated 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 RequestOptions
, with a type
matching the value of value()
.
public abstract Class<?> value
Must match the type of the RequestOptions
parameter.