loadFile

suspend fun loadFile(bytes: ByteArray): FileHandle

Load a Rive into the command queue. Returns the handle in either onFileLoaded or an error in onFileError.

Return

A FileHandle that represents the loaded Rive file.

Parameters

bytes

The bytes of the Rive file to load.

Throws

If the file could not be loaded.

If the CommandQueue has been released.

If the coroutine is cancelled before the operation completes.