deleteViewModelInstance

fun deleteViewModelInstance(viewModelInstanceHandle: ViewModelInstanceHandle)

Delete a view model instance and free its resources. This is useful when you no longer need the view model instance and want to free up memory. Counterpart to createViewModelInstance.

Parameters

viewModelInstanceHandle

The handle of the view model instance to delete.

Throws

If the CommandQueue has been released.