-
- All Implemented Interfaces:
-
app.rive.ViewModelInstanceSource
public final class ViewModelInstanceSource.Named implements ViewModelInstanceSource
Create a new view model instance with properties initialized to the values of the instance with the given name.
-
-
Field Summary
Fields Modifier and Type Field Description private final ViewModelSourcevmSourceprivate final StringinstanceName
-
Constructor Summary
Constructors Constructor Description ViewModelInstanceSource.Named(ViewModelSource vmSource, String instanceName)
-
Method Summary
Modifier and Type Method Description final ViewModelSourcegetVmSource()final StringgetInstanceName()-
-
Constructor Detail
-
ViewModelInstanceSource.Named
ViewModelInstanceSource.Named(ViewModelSource vmSource, String instanceName)
- Parameters:
vmSource- The source of the view model that owns this instance.instanceName- The name of the instance in the Rive file to reference when creating the new instance.
-
-
Method Detail
-
getVmSource
final ViewModelSource getVmSource()
-
getInstanceName
final String getInstanceName()
-
-
-
-