Package 

Object ViewModelInstance.Companion

    • Method Detail

      • fromFile

         final ViewModelInstance fromFile(RiveFile file, ViewModelInstanceSource source)

        Creates a new ViewModelInstance.

        ⚠️ The lifetime of the returned view model instance is managed by the caller. Make sure to call close when you are done with the instance to release its resources.

        Parameters:
        file - The RiveFile to create the view model instance from.
        source - The source of the view model instance.