update api/@ohos.screenLock.d.ts.

Signed-off-by: lwf <liweifeng10@huawei.com>
This commit is contained in:
lwf 2024-06-06 09:55:25 +00:00 committed by Gitee
parent 5158085374
commit 08fbaa1c20
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -105,7 +105,7 @@ declare namespace screenLock {
*
* @param { AsyncCallback<boolean> } callback - the callback of unlock.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
* <br> 2. Incorrect parameter types.
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API.
* @throws { BusinessError } 13200002 - the screenlock management service is abnormal.
* @syscap SystemCapability.MiscServices.ScreenLock
@ -117,7 +117,7 @@ declare namespace screenLock {
*
* @param { AsyncCallback<boolean> } callback - the callback of unlock.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
* <br> 2. Incorrect parameter types.
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API.
* @throws { BusinessError } 13200002 - the screenlock management service is abnormal.
* @throws { BusinessError } 13200003 - illegal use.
@ -156,7 +156,7 @@ declare namespace screenLock {
* @permission ohos.permission.ACCESS_SCREEN_LOCK_INNER
* @param { AsyncCallback<boolean> } callback - the callback of lock.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
* <br> 2. Incorrect parameter types.
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 201 - permission denied.
* @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API.
* @throws { BusinessError } 13200002 - the screenlock management service is abnormal.
@ -237,7 +237,7 @@ declare namespace screenLock {
* @param { Callback<SystemEvent> } callback - the callback of onSystemEvent.
* @returns { boolean } returns true if register system event is success, returns false otherwise.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
* <br> 2. Incorrect parameter types.
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 201 - permission denied.
* @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API.
* @throws { BusinessError } 13200002 - the screenlock management service is abnormal.
@ -255,7 +255,7 @@ declare namespace screenLock {
* @param { number } parameter - operation result of the event.
* @param { AsyncCallback<boolean> } callback - the callback of sendScreenLockEvent.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
* <br> 2. Incorrect parameter types.
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 201 - permission denied.
* @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API.
* @throws { BusinessError } 13200002 - the screenlock management service is abnormal.
@ -273,7 +273,7 @@ declare namespace screenLock {
* @param { number } parameter - operation result of the event.
* @returns { Promise<boolean> } the promise returned by the function.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
* <br> 2. Incorrect parameter types.
* <br>2. Incorrect parameter types.
* @throws { BusinessError } 201 - permission denied.
* @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API.
* @throws { BusinessError } 13200002 - the screenlock management service is abnormal.