ImageAssetLoader


@UnstableApi
class ImageAssetLoader : AssetLoader


An AssetLoader implementation that loads images into Bitmap instances.

Supports the image formats listed here except from GIFs, which could exhibit unexpected behavior.

Summary

Public functions

ImmutableMap<Int!, String!>!

Return the used decoders' names.

Int

Returns the current Transformer.ProgressState and updates progressHolder with the current progress if it is available.

Unit

Stops loading data and releases all resources associated with the asset loader.

Unit

Starts the asset loader.

Inherited Constants

From androidx.media3.transformer.AssetLoader
const Int

Indicates that the asset loader can output decoded samples.

const Int

Indicates that the asset loader can output encoded samples.

Public functions

getDecoderNames

fun getDecoderNames(): ImmutableMap<Int!, String!>!

Return the used decoders' names.

Returns
ImmutableMap<Int!, String!>!

The decoders' names keyed by track type.

getProgress

@Transformer.ProgressState
fun getProgress(progressHolder: ProgressHolder!): Int

Returns the current Transformer.ProgressState and updates progressHolder with the current progress if it is available.

Parameters
progressHolder: ProgressHolder!

A ProgressHolder, updated to hold the percentage progress if available.

release

fun release(): Unit

Stops loading data and releases all resources associated with the asset loader.

start

fun start(): Unit

Starts the asset loader.