-
public class RiveFile.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static RiveFile.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Result<RiveFile>fromSource(RiveFileSource source, CommandQueue commandQueue)Loads a RiveFile from the given source. -
-
Method Detail
-
fromSource
final Result<RiveFile> fromSource(RiveFileSource source, CommandQueue commandQueue)
Loads a RiveFile from the given source.
The lifetime of the RiveFile is managed by the caller. Make sure to call close when you are done with the file to release its resources.
- Parameters:
source- The source of the Rive file.commandQueue- The command queue that owns the file.
-
-
-
-