-
public class ViewModelInstance.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static ViewModelInstance.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final ViewModelInstancefromFile(RiveFile file, ViewModelInstanceSource source)Creates a new ViewModelInstance. -
-
Method Detail
-
fromFile
final ViewModelInstance fromFile(RiveFile file, ViewModelInstanceSource source)
Creates a new ViewModelInstance.
The lifetime of the 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.
-
-
-
-