Package 

Interface ViewModelInstanceSource


  • 
    public interface ViewModelInstanceSource
    
                        

    The second half of a source for a ViewModelInstance. This represents the specific instance of the view model. This can be either:

    • Blank for an instance with default initialized properties,

    • Default for the default instance, or

    • Named for a specific named instance.

    The Reference option is used to refer to a child instance, given an existing instance, at a slash delimited path.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class ViewModelInstanceSource.Blank

      Create a new view model instance with default value initialized properties, e.g. 0 for integers, empty strings, etc.

      public final class ViewModelInstanceSource.Default

      Create a new view model instance with properties initialized to the values of the instance labelled "Default" in the Rive file.

      public final class ViewModelInstanceSource.Named

      Create a new view model instance with properties initialized to the values of the instance with the given name.

      public final class ViewModelInstanceSource.Reference

      Create a reference to an existing child view model instance.

      public final class ViewModelInstanceSource.ReferenceListItem

      Create a reference to an existing child view model instance within a list at a given index.