-
public interface ViewModelSourceOne half of a source for a ViewModelInstance. This represents the view model that originates the instance. This can be either Named to refer to a specific view model, or DefaultForArtboard, which will use the default view model for the given Artboard. This is usually the one the designer has intended to be used with the artboard.
The ViewModelInstanceSource is the other half, which represents the specific view model instance. The helper methods on this interface are provided as a builder pattern.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classViewModelSource.NamedA specific view model by name.
public final classViewModelSource.DefaultForArtboardThe default view model for the given artboard.
-
Method Summary
Modifier and Type Method Description ViewModelInstanceSourceblankInstance()A view model instance with default initialized properties. ViewModelInstanceSourcedefaultInstance()The instance marked "Default" in the Rive file. ViewModelInstanceSourcenamedInstance(String instanceName)A specific instance by name. -
-
Method Detail
-
blankInstance
ViewModelInstanceSource blankInstance()
A view model instance with default initialized properties.
-
defaultInstance
ViewModelInstanceSource defaultInstance()
The instance marked "Default" in the Rive file.
-
namedInstance
ViewModelInstanceSource namedInstance(String instanceName)
A specific instance by name.
-
-
-
-