From 236a31280ee4de6fae9f54d315085ec00ce1602c Mon Sep 17 00:00:00 2001 From: wangdongqi Date: Mon, 12 Dec 2022 15:04:56 +0800 Subject: [PATCH 1/3] Signed-off-by: wangdongqi Changes to be committed: --- api/@ohos.screenLock.d.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/@ohos.screenLock.d.ts b/api/@ohos.screenLock.d.ts index 30c3424620..ff7544e48e 100644 --- a/api/@ohos.screenLock.d.ts +++ b/api/@ohos.screenLock.d.ts @@ -25,7 +25,6 @@ declare namespace screenLock { /** * Checks whether the screen is currently locked. Returns true if the screen is currently locked. returns false otherwise. * @returns { Promise } the Promise returned by the function. - * otherwise. * @since 7 * @deprecated since 9 * @useinstead ohos.screenLock.isLocked @@ -43,7 +42,6 @@ declare namespace screenLock { /** * Checks whether the screen lock of the current device is secure. Returns true if the screen lock of the current device is secure. returns false otherwise. * @returns { Promise } the Promise returned by the function. - * otherwise. * @since 7 * @deprecated since 9 * @useinstead ohos.screenLock.isSecure @@ -60,7 +58,6 @@ declare namespace screenLock { /** * Unlock the screen. - * return - * @since 7 * @deprecated since 9 * @useinstead ohos.screenLock.unlock -- Gitee From 5cb116f25d3d1be0ca436cb19834bba836cd5d98 Mon Sep 17 00:00:00 2001 From: wangdongqi Date: Mon, 12 Dec 2022 16:28:00 +0800 Subject: [PATCH 2/3] Signed-off-by: wangdongqi Changes to be committed: --- api/@ohos.screenLock.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/@ohos.screenLock.d.ts b/api/@ohos.screenLock.d.ts index ff7544e48e..62ffd00f57 100644 --- a/api/@ohos.screenLock.d.ts +++ b/api/@ohos.screenLock.d.ts @@ -79,6 +79,7 @@ declare namespace screenLock { * Lock the screen. Returns true if the screen locked successfully. returns false otherwise. * @returns { Promise } the Promise returned by the function. * @throws {BusinessError} 401 - parameter error. + * @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. * @systemapi Hide this for inner system use. * @since 9 @@ -98,6 +99,7 @@ declare namespace screenLock { * @param { Callback } callback - the callback function for indicating the system event related screen lock * @returns { boolean } the boolean returned by the function. * @throws {BusinessError} 401 - parameter error. + * @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. * @systemapi Hide this for inner system use. * @since 9 @@ -109,6 +111,7 @@ declare namespace screenLock { * @param { String } event - event type. * @param { number } parameter - operation result of the event. * @throws {BusinessError} 401 - parameter error. + * @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. * @systemapi Hide this for inner system use. * @since 9 -- Gitee From 097ade3b3dd41f82b7262df9fa4704b9b13d3342 Mon Sep 17 00:00:00 2001 From: wangdongqi Date: Mon, 12 Dec 2022 17:52:03 +0800 Subject: [PATCH 3/3] Signed-off-by: wangdongqi Changes to be committed: --- api/@ohos.wallpaper.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/@ohos.wallpaper.d.ts b/api/@ohos.wallpaper.d.ts index 9dd484769a..02c1df02d9 100644 --- a/api/@ohos.wallpaper.d.ts +++ b/api/@ohos.wallpaper.d.ts @@ -227,6 +227,7 @@ declare namespace wallpaper { * @returns { Promise } the Promise returned by the function. * @throws {BusinessError} 401 - parameter error. * @throws {BusinessError} 201 - permission denied. + * @throws {BusinessError} 202 - permission verification failed, application which is not a system application uses system API. * @permission ohos.permission.GET_WALLPAPER * @systemapi Hide this for inner system use. * @since 9 -- Gitee