-
public final class RiveFileKt
-
-
Method Summary
Modifier and Type Method Description final static State<Result<RiveFile>>rememberRiveFile(RiveFileSource source, CommandQueue commandQueue)Loads a RiveFile from the given source. -
-
Method Detail
-
rememberRiveFile
@Composable() final static State<Result<RiveFile>> rememberRiveFile(RiveFileSource source, CommandQueue commandQueue)
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 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.commandQueue- The command queue that owns the file.
-
-
-
-