-
public final class RiveFileKt
-
-
Method Summary
Modifier and Type Method Description final static Result<RiveFile>rememberRiveFile(RiveFileSource source, CommandQueue riveWorker)Loads a RiveFile from the given source. -
-
Method Detail
-
rememberRiveFile
@Composable() final static Result<RiveFile> rememberRiveFile(RiveFileSource source, CommandQueue riveWorker)
Loads a RiveFile from the given source.
The lifetime of the RiveFile is managed by this composable. It will release the resources allocated to the file, including its reference to riveWorker, when it falls out of scope.
- Parameters:
source- The source of the Rive file, which can be a byte array or a raw resource ID.riveWorker- The Rive worker that owns the file.
-
-
-
-