ImageAssetLoader.Factory


class ImageAssetLoader.Factory : AssetLoader.Factory


An AssetLoader.Factory for ImageAssetLoader instances.

Summary

Public constructors

Factory(context: Context!, bitmapLoader: BitmapLoader!)

Creates an instance.

Public functions

AssetLoader!
createAssetLoader(
    editedMediaItem: EditedMediaItem!,
    looper: Looper!,
    listener: AssetLoader.Listener!,
    compositionSettings: AssetLoader.CompositionSettings!
)

Creates an AssetLoader instance.

Public constructors

Factory

Factory(context: Context!, bitmapLoader: BitmapLoader!)

Creates an instance.

Parameters
context: Context!

The Context.

bitmapLoader: BitmapLoader!

The BitmapLoader to use to load and decode images.

Public functions

createAssetLoader

fun createAssetLoader(
    editedMediaItem: EditedMediaItem!,
    looper: Looper!,
    listener: AssetLoader.Listener!,
    compositionSettings: AssetLoader.CompositionSettings!
): AssetLoader!

Creates an AssetLoader instance.

Parameters
editedMediaItem: EditedMediaItem!

The EditedMediaItem to load.

looper: Looper!

The Looper that's used to access the AssetLoader after it's been created.

listener: AssetLoader.Listener!

The Listener on which the AssetLoader should notify of events.

compositionSettings: AssetLoader.CompositionSettings!

The CompositionSettings.

Returns
AssetLoader!

An AssetLoader.