getViewModelByIndex

fun getViewModelByIndex(viewModelIdx: Int): ViewModel

Get the ViewModel definition from the file.

Return

The ViewModel definition.

Parameters

viewModelIdx

The Rive file 0-based index of the ViewModel.

Throws

If the ViewModel is not found.