From cbde010fea02350d377a973d7eafdc4566817b1b Mon Sep 17 00:00:00 2001 From: wangtong Date: Mon, 17 Mar 2025 11:46:42 +0800 Subject: [PATCH] feat:query cloud apps Signed-off-by: wangtong --- api/@ohos.data.cloudData.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/api/@ohos.data.cloudData.d.ts b/api/@ohos.data.cloudData.d.ts index d8a2e688ef..791de883e7 100644 --- a/api/@ohos.data.cloudData.d.ts +++ b/api/@ohos.data.cloudData.d.ts @@ -633,6 +633,20 @@ declare namespace cloudData { * @since 12 */ static setGlobalCloudStrategy(strategy: StrategyType, param?: Array): Promise; + + /** + * query cloud appsInfos. + * + * @permission ohos.permission.CLOUDDATA_CONFIG + * @returns { Promise } Promise used to return the result. + * @throws { BusinessError } 201 - Permission verification failed, usually the result returned by VerifyAccessToken. + * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. + * @throws { BusinessError } 801 - Capability not supported. + * @syscap SystemCapability.DistributedDataManager.CloudSync.Config + * @systemapi + * @since 20 + */ + static queryCloudApps(): Promise; } /** -- Gitee