Package-level declarations

Types

Link copied to clipboard
@RequiresApi(value = 28)
class AnimatedImageDecoder @JvmOverloads constructor(source: ImageSource, options: Options, enforceMinimumFrameDelay: Boolean = true) : Decoder

A Decoder that uses ImageDecoder to decode GIFs, animated WebPs, and animated HEIFs.

Link copied to clipboard

An interface for making transformations to an animated image's pixel data.

Link copied to clipboard
class GifDecoder @JvmOverloads constructor(source: ImageSource, options: Options, enforceMinimumFrameDelay: Boolean = true) : Decoder

A Decoder that uses Movie to decode GIFs.

Link copied to clipboard
class MovieDrawable @JvmOverloads constructor(movie: Movie, val config: Bitmap.Config = Bitmap.Config.ARGB_8888, val scale: Scale = Scale.FIT) : Drawable, Animatable2Compat

A Drawable that supports rendering Movies (i.e. GIFs).

Link copied to clipboard

Represents the opacity of an image's pixels after applying an AnimatedTransformation.

Link copied to clipboard
class ScaleDrawable @JvmOverloads constructor(val child: Drawable, val scale: Scale = Scale.FIT) : Drawable, Drawable.Callback, Animatable

A Drawable that centers and scales its child to fill its bounds.

Properties

Functions

Link copied to clipboard

Set the AnimatedTransformation that will be applied to the result if it is an animated Drawable.

Link copied to clipboard

Return 'true' if the source contains an animated HEIF image sequence. The source is not consumed.

Link copied to clipboard

Return 'true' if the source contains an animated WebP image. The source is not consumed.

Link copied to clipboard

Return 'true' if the source contains a GIF image. The source is not consumed.

Link copied to clipboard

Return 'true' if the source contains an HEIF image. The source is not consumed.

Link copied to clipboard

Return 'true' if the source contains a WebP image. The source is not consumed.

Link copied to clipboard

Set the callback to be invoked at the end of the animation if the result is an animated Drawable.

Link copied to clipboard

Set the callback to be invoked at the start of the animation if the result is an animated Drawable.

Link copied to clipboard

Set the number of times to repeat the animation if the result is an animated Drawable.