Package 

Object RiveFile.Companion

    • Method Detail

      • fromSource

         final Result<RiveFile> fromSource(RiveFileSource source, CommandQueue riveWorker)

        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.
        riveWorker - The Rive worker that owns the file.