mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 06:03:30 +00:00
update api/@ohos.screenLock.d.ts.
Signed-off-by: lwf <liweifeng10@huawei.com>
This commit is contained in:
parent
5158085374
commit
08fbaa1c20
12
api/@ohos.screenLock.d.ts
vendored
12
api/@ohos.screenLock.d.ts
vendored
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user