KPluginPublicModelLibrary
kds-plugin-document / Exports / KPluginPublicModelLibrary
Interface: KPluginPublicModelLibrary
Table of contents
Methods
Methods
getCategories
▸ getCategories(): HostPromise<{ categories: KPluginModelCategory[] ; errorInfo?: KErrorInfo }>
获取模型库类目
Get categories of model library.
Returns
HostPromise<{ categories: KPluginModelCategory[] ; errorInfo?: KErrorInfo }>
Defined in
api.d.ts:3996
getModelList
▸ getModelList(obsCatId, start, num): HostPromise<{ errorInfo?: KErrorInfo ; modelList: KPluginModelInfo[] ; totalCount: number }>
获取模型列表
Get list of model library When querying the model list, "num" must be less than or equal to 48. If "start" exceeds 5000, the query may take a longer time due to the large amount of data.
Parameters
| Name | Type |
|---|---|
obsCatId | string |
start | number |
num | number |
Returns
HostPromise<{ errorInfo?: KErrorInfo ; modelList: KPluginModelInfo[] ; totalCount: number }>
Defined in
api.d.ts:4005