ImageAssetLoader.Factory


public final class ImageAssetLoader.Factory implements AssetLoader.Factory


An AssetLoader.Factory for ImageAssetLoader instances.

Summary

Public constructors

Factory(Context context, BitmapLoader bitmapLoader)

Creates an instance.

Public methods

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

Creates an AssetLoader instance.

Public constructors

Factory

public 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 methods

createAssetLoader

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

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.

AssetLoader.Listener listener

The Listener on which the AssetLoader should notify of events.

AssetLoader.CompositionSettings compositionSettings

The CompositionSettings.

Returns
AssetLoader

An AssetLoader.