diff --git a/api/@ohos.screenLock.d.ts b/api/@ohos.screenLock.d.ts index 8c2b7606f0451e054c1ea471939f08cad074ff00..30c34246201d4cfcfa1f01187d1c3846586ff5e8 100644 --- a/api/@ohos.screenLock.d.ts +++ b/api/@ohos.screenLock.d.ts @@ -72,6 +72,7 @@ declare namespace screenLock { * Unlock the screen. Returns true if the screen unlocked successfully. returns false otherwise. * @returns { Promise } the Promise returned by the function. * @throws {BusinessError} 401 - parameter error. + * @throws {BusinessError} 13200002 - the screenlock management service is abnormal. * @since 9 */ function unlock(callback: AsyncCallback): void; @@ -81,6 +82,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} 13200002 - the screenlock management service is abnormal. * @systemapi Hide this for inner system use. * @since 9 */ @@ -99,6 +101,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} 13200002 - the screenlock management service is abnormal. * @systemapi Hide this for inner system use. * @since 9 */ @@ -109,6 +112,7 @@ declare namespace screenLock { * @param { String } event - event type. * @param { number } parameter - operation result of the event. * @throws {BusinessError} 401 - parameter error. + * @throws {BusinessError} 13200002 - the screenlock management service is abnormal. * @systemapi Hide this for inner system use. * @since 9 */