SurfaceAssetLoader.Callback


interface SurfaceAssetLoader.Callback


Callbacks for SurfaceAssetLoader events.

Summary

Public functions

Unit

Called when the asset loader has been created.

Unit
onSurfaceReady(surface: Surface!, editedMediaItem: EditedMediaItem!)

Called when the input surface is ready to write to.

Public functions

onSurfaceAssetLoaderCreated

fun onSurfaceAssetLoaderCreated(surfaceAssetLoader: SurfaceAssetLoader!): Unit

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

fun onSurfaceReady(surface: Surface!, editedMediaItem: EditedMediaItem!): Unit

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 .