File tree Expand file tree Collapse file tree
kotlin/src/main/kotlin/app/rive Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,20 +147,8 @@ class RiveFile internal constructor(
147147 }
148148
149149 /* *
150- * Retrieves the default view model information for an artboard.
151- *
152- * View models define the data structure and bindings for an artboard. This method allows
153- * discovery of which view model and instance are associated with the artboard by default,
154- * as assigned in the Rive editor.
155- *
156- * This is useful when using [ViewModelSource.DefaultForArtboard] to create a view model
157- * instance, since that path does not reveal the view model name. The name is required for
158- * file-level queries like [getViewModelProperties] and [getViewModelInstanceNames].
159- *
160150 * @param artboard The artboard to query for default view model information.
161151 * @return A [DefaultViewModelInfo] containing the view model name and instance name.
162- * @throws RuntimeException If no default view model is found for the artboard.
163- * @throws CancellationException If the coroutine is cancelled before the operation completes.
164152 */
165153 suspend fun getDefaultViewModelInfo (artboard : Artboard ): DefaultViewModelInfo =
166154 riveWorker.getDefaultViewModelInfo(fileHandle, artboard.artboardHandle)
Original file line number Diff line number Diff line change @@ -2393,10 +2393,8 @@ value class FontHandle(val handle: Long) {
23932393}
23942394
23952395/* *
2396- * Information about the default view model for an artboard.
2397- *
2398- * Returned by [CommandQueue.getDefaultViewModelInfo]. Contains the name of the default view model
2399- * and the name of its default instance, as assigned in the Rive editor.
2396+ * Information about the default view model for an artboard. Returned by
2397+ * [CommandQueue.getDefaultViewModelInfo].
24002398 *
24012399 * @param viewModelName The name of the default view model type for the artboard.
24022400 * @param instanceName The name of the default view model instance for the artboard.
You can’t perform that action at this time.
0 commit comments