useAnimationPool

open fun useAnimationPool(flag: Boolean): T

If set to true, uses a special java.util.concurrent.Executor that is used exclusively for decoding frames of animated resources, like GIFs.

The animation executor disallows network operations and must not be used for loads that may load remote data. The animation executor has fewer threads available to it than Glide's normal executors and is only useful as a way of avoiding blocking on longer and more expensive reads for critical requests like those in an animating GIF.

If both useUnlimitedSourceGeneratorsPool and this method are set, useUnlimitedSourceGeneratorsPool will be preferred and this method will be ignored.


open val useAnimationPool: Boolean