subscribeToProperty

fun subscribeToProperty(viewModelInstanceHandle: ViewModelInstanceHandle, propertyPath: String, propertyType: ViewModel.PropertyDataType)

Subscribe to changes to a property on the view model instance. Updates will be emitted on the flow of the corresponding type, e.g. numberPropertyFlow for number properties.

Parameters

viewModelInstanceHandle

The handle of the view model instance that the property belongs to.

propertyPath

The path to the property that should be subscribed to. Slash delimited.

propertyType

The type of the property to subscribe to.

Throws

If the property type is invalid.

If the CommandQueue has been released.