From 308d01abd8547ae4afd82d096915eff161054fe5 Mon Sep 17 00:00:00 2001 From: wlj Date: Mon, 23 May 2022 20:41:36 +0800 Subject: [PATCH 1/2] add forbid_split_move api Signed-off-by: wlj --- api/@ohos.window.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index abc740ce32..ec2222ebf6 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -962,6 +962,24 @@ declare namespace window { * @return The dump info array. */ dump(params: Array): Array; + + /** + * set the flag of the window is forbidden to move in split screen mode + * @param isForbidSplitMove the flag of the window is forbidden to move in split screen mode + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @systemapi + * @since 9 + */ + setForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback): void; + + /** + * set the flag of the window is forbidden to move in split screen mode + * @param isForbidSplitMove the flag of the window is forbidden to move in split screen mode + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @systemapi + * @since 9 + */ + setForbidSplitMove(isForbidSplitMove: boolean): Promise; } /** * window stage callback event type -- Gitee From 2a5efc5620fb972fdcae56a8da78a85acfa1f9fa Mon Sep 17 00:00:00 2001 From: wuyongning Date: Fri, 27 May 2022 17:01:49 +0800 Subject: [PATCH 2/2] permission discription change Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 50 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 7b20196203..985f98ff2a 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -239,9 +239,17 @@ declare namespace rdb { /** * Set table to be distributed table. * + * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param tables the tables name you want to set + */ + /** + * Set table to be distributed table. + * + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param tables the tables name you want to set * @permission ohos.permission.DISTRIBUTED_DATASYNC */ setDistributedTables(tables: Array, callback: AsyncCallback): void; @@ -251,10 +259,21 @@ declare namespace rdb { * Obtain distributed table name of specified remote device according to local table name. * When query remote device database, distributed table name is needed. * + * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param device Indicates the remote device. * @param table Indicates the local table name. + * @return the distributed table name. + */ + /** + * Obtain distributed table name of specified remote device according to local table name. + * When query remote device database, distributed table name is needed. + * + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param device Indicates the remote device. + * @param table Indicates the local table name. * @permission ohos.permission.DISTRIBUTED_DATASYNC * @return the distributed table name. */ @@ -264,11 +283,21 @@ declare namespace rdb { /** * Sync data between devices * + * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param mode Indicates the synchronization mode. The value can be PUSH, PULL. * @param predicates Constraint synchronized data and devices. * @param callback Indicates the callback used to send the synchronization result to the caller. + */ + /** + * Sync data between devices + * + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param mode Indicates the synchronization mode. The value can be PUSH, PULL. + * @param predicates Constraint synchronized data and devices. + * @param callback Indicates the callback used to send the synchronization result to the caller. * @permission ohos.permission.DISTRIBUTED_DATASYNC */ sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback>): void; @@ -278,10 +307,20 @@ declare namespace rdb { * Registers an observer for the database. When data in the distributed database changes, * the callback will be invoked. * + * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. * @param observer Indicates the observer of data change events in the distributed database. + */ + /** + * Registers an observer for the database. When data in the distributed database changes, + * the callback will be invoked. + * + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. + * @param observer Indicates the observer of data change events in the distributed database. * @permission ohos.permission.DISTRIBUTED_DATASYNC */ on(event: 'dataChange', type: SubscribeType, observer: Callback>): void; @@ -289,10 +328,19 @@ declare namespace rdb { /** * Remove specified observer of specified type from the database. * + * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. - * @param observer Indicates the data change observer already registered . + * @param observer Indicates the data change observer already registered. + */ + /** + * Remove specified observer of specified type from the database. + * + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. + * @param observer Indicates the data change observer already registered. * @permission ohos.permission.DISTRIBUTED_DATASYNC */ off(event:'dataChange', type: SubscribeType, observer: Callback>): void; -- Gitee