From 9a58cd5bdc2b2993d26ad30645a448b02db94528 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Thu, 6 Apr 2023 20:50:12 +0800 Subject: [PATCH] Update doc (16835) Signed-off-by: ester.zhou --- .../reference/apis/js-apis-screen-lock.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/en/application-dev/reference/apis/js-apis-screen-lock.md b/en/application-dev/reference/apis/js-apis-screen-lock.md index 2ee3029a1f..e399c34b8d 100644 --- a/en/application-dev/reference/apis/js-apis-screen-lock.md +++ b/en/application-dev/reference/apis/js-apis-screen-lock.md @@ -150,6 +150,8 @@ Locks the screen. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.MiscServices.ScreenLock +**Required permissions**: ohos.permission.ACCESS_SCREEN_LOCK_INNER + **System API**: This is a system API. **Parameters** @@ -186,6 +188,8 @@ Locks the screen. This API uses a promise to return the result. **System capability**: SystemCapability.MiscServices.ScreenLock +**Required permissions**: ohos.permission.ACCESS_SCREEN_LOCK_INNER + **System API**: This is a system API. **Return value** @@ -220,6 +224,8 @@ Registers a callback for system events related to screen locking. This API can b **System capability**: SystemCapability.MiscServices.ScreenLock +**Required permissions**: ohos.permission.ACCESS_SCREEN_LOCK_INNER + **System API**: This is a system API. **Parameters** @@ -262,6 +268,8 @@ Sends an event to the screen lock service. This API uses an asynchronous callbac **System capability**: SystemCapability.MiscServices.ScreenLock +**Required permissions**: ohos.permission.ACCESS_SCREEN_LOCK_INNER + **System API**: This is a system API. **Parameters** @@ -300,6 +308,8 @@ Sends an event to the screen lock service. This API uses a promise to return the **System capability**: SystemCapability.MiscServices.ScreenLock +**Required permissions**: ohos.permission.ACCESS_SCREEN_LOCK_INNER + **System API**: This is a system API. **Parameters** -- GitLab