getDefaultViewModelInfo

suspend fun getDefaultViewModelInfo(fileHandle: FileHandle, artboardHandle: ArtboardHandle): DefaultViewModelInfo

Query the default view model info for an artboard. Returns on onDefaultViewModelInfoReceived.

Return

A DefaultViewModelInfo containing the view model name and instance name.

Parameters

fileHandle

The handle of the file containing the artboard.

artboardHandle

The handle of the artboard to query.

Throws

If the artboard or file handle is invalid, or no default view model is found.

If the CommandQueue has been released.

If the coroutine is cancelled before the operation completes.