From de883daa3cf00ac8d2274f8e91913f64ccd6c1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=82=96=E8=91=9B?= Date: Wed, 13 Aug 2025 14:33:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E7=89=87=E6=A1=86=E6=9E=B6=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=A1=A5=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李肖葛 --- api/@ohos.app.form.formHost.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/api/@ohos.app.form.formHost.d.ts b/api/@ohos.app.form.formHost.d.ts index 107b40c152b..7e0254e0604 100644 --- a/api/@ohos.app.form.formHost.d.ts +++ b/api/@ohos.app.form.formHost.d.ts @@ -1336,5 +1336,25 @@ declare namespace formHost { * @since 20 */ function updateFormSize(formId: string, newDimension: formInfo.FormDimension, newRect: formInfo.Rect): void; + + /** + * Notify form lock state update. + * + * @permission ohos.permission.REQUIRE_FORM + * @param { string } formId - Indicates the form id. + * @param { boolean } isLocked - Indicates whether locked. + * @returns { Promise } The promise returned by the function. + * @throws { BusinessError } 201 - Permissions denied. + * @throws { BusinessError } 202 - caller is not system app. + * @throws { BusinessError } 16500050 - IPC connection error. + * @throws { BusinessError } 16500060 - Service connection error. + * @throws { BusinessError } 16501000 - An internal functional error occurred. + * @throws { BusinessError } 16501001 - The ID of the form to be operated does not exist. + * @throws { BusinessError } 16501003 - The form cannot be operated by the current application. + * @syscap SystemCapability.Ability.Form + * @systemapi + * @since 18 + */ + function updateFormLockedState(formId: string, isLocked: boolean): Promise; } export default formHost; -- Gitee