SurfaceAssetLoader.Factory


public final class SurfaceAssetLoader.Factory implements AssetLoader.Factory


Factory for SurfaceAssetLoader instances.

Summary

Public constructors

Creates a factory with the specified callback.

Public methods

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

Creates an AssetLoader instance.

Public constructors

Factory

public Factory(SurfaceAssetLoader.Callback callback)

Creates a factory with the specified callback.

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.