public interface

AssetLoader.Factory

 androidx.media3.transformer.AssetLoader.Factory

Subclasses:

ImageAssetLoader.Factory, ExoPlayerAssetLoader.Factory, SurfaceAssetLoader.Factory, DefaultAssetLoaderFactory

Overview

A factory for AssetLoader instances.

Summary

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

Creates an AssetLoader instance.

Methods

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

Creates an AssetLoader instance.

Parameters:

editedMediaItem: The EditedMediaItem to load.
looper: The that's used to access the AssetLoader after it's been created.
listener: The AssetLoader.Listener on which the AssetLoader should notify of events.
compositionSettings: The AssetLoader.CompositionSettings.

Returns:

An AssetLoader.