buildJavaCallback

Builds a GifEncoder with the specified parameters.

Return

The constructed GifEncoder.

Parameters

onFrameWritten

A callback that is invoked after each frame is written, providing the number of frames written and the total duration of all the frames written so far. This can be used to track progress or update a UI.

Throws

If any of the builder parameters are invalid.