build

actual fun build(onFrameWritten: (framesWritten: Int, writtenDuration: Duration) -> Unit): GifEncoder(source)

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.

expect fun build(onFrameWritten: (framesWritten: Int, writtenDuration: Duration) -> Unit = { _, _ -> }): GifEncoder(source)

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.

actual fun build(onFrameWritten: (framesWritten: Int, writtenDuration: Duration) -> Unit): GifEncoder(source)

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.

actual fun build(onFrameWritten: (framesWritten: Int, writtenDuration: Duration) -> Unit): GifEncoder(source)

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.