setDefaultTransitionOptions

open fun <T> setDefaultTransitionOptions(clazz: Class<T>, options: TransitionOptions<out Any, T>): GlideBuilder

Sets the default TransitionOptions to use when starting a request that will load a resource with the given Class.

It's preferable but not required for the requested resource class to match the resource class applied here as long as the resource class applied here is assignable from the requested resource class. For example you can set a default transition for and that default transition will be used if you subsequently start requests for specific android.graphics.drawable.Drawable types like com.bumptech.glide.load.resource.gif.GifDrawable or . Specific types are always preferred so if you register a default transition for both android.graphics.drawable.Drawable and and then start a request for s, the transition you registered for s will be used.