SurfaceAssetLoader.Callback


public interface SurfaceAssetLoader.Callback


Callbacks for SurfaceAssetLoader events.

Summary

Public methods

abstract void

Called when the asset loader has been created.

abstract void
onSurfaceReady(Surface surface, EditedMediaItem editedMediaItem)

Called when the input surface is ready to write to.

Public methods

onSurfaceAssetLoaderCreated

abstract void onSurfaceAssetLoaderCreated(SurfaceAssetLoader surfaceAssetLoader)

Called when the asset loader has been created. Pass the content format to the provided asset loader to trigger surface creation. May be called on any thread.

onSurfaceReady

abstract void onSurfaceReady(Surface surface, EditedMediaItem editedMediaItem)

Called when the input surface is ready to write to. May be called on any thread.

Parameters
Surface surface

The Surface to write to.

EditedMediaItem editedMediaItem

The EditedMediaItem used to create the associated .