From d461a45513d78058a2484006a3ff8f72dba9da26 Mon Sep 17 00:00:00 2001 From: wufengshan Date: Fri, 27 May 2022 17:05:07 +0800 Subject: [PATCH] API8 JS interface modify permission --- api/@ohos.data.distributedDataObject.d.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/api/@ohos.data.distributedDataObject.d.ts b/api/@ohos.data.distributedDataObject.d.ts index c788a7b735..e468a63848 100644 --- a/api/@ohos.data.distributedDataObject.d.ts +++ b/api/@ohos.data.distributedDataObject.d.ts @@ -48,12 +48,20 @@ declare namespace distributedDataObject { */ interface DistributedObject { /** - * Change object session - * - * @param sessionId The sessionId to be joined, if empty, leave all session - * @return Operation result, true is success, false is failed + * Change object session. + * @param sessionId The sessionId to be joined, if empty, leave all session. + * @return Operation result, true is success, false is failed. + * @depcreated since 9 * @permission ohos.permission.DISTRIBUTED_DATASYNC * @since 8 + */ + /** + * Change object session. + * @param sessionId The sessionId to be joined, if empty, leave all session. + * @return Operation result, true is success, false is failed. + * @depcreated since 9 + * @permission ohos.permission.DISTRIBUTED_DATASYNC + * @since 9 */ setSessionId(sessionId?: string): boolean; -- Gitee