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 92ea5dbe9a344bce2102a94648d7aa869357eade..10a81b8f290705cb9ca29736c2bc73034d8c3e24 100644 --- a/en/application-dev/reference/apis/js-apis-screen-lock.md +++ b/en/application-dev/reference/apis/js-apis-screen-lock.md @@ -146,7 +146,7 @@ screenlock.unlock().then((data) => { lock(callback: AsyncCallback<boolean>): void -Locks the screen. This API uses an asynchronous callback to return the result. +Locks the screen. This API can be called only by system screen lock applications. It uses an asynchronous callback to return the result. **System capability**: SystemCapability.MiscServices.ScreenLock @@ -182,7 +182,7 @@ screenlock.lock((err, data) => { lock(): Promise<boolean> -Locks the screen. This API uses a promise to return the result. +Locks the screen. This API can be called only by system screen lock applications. It uses a promise to return the result. **System capability**: SystemCapability.MiscServices.ScreenLock @@ -258,7 +258,7 @@ try { sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback<boolean>): void -Sends an event to the screen lock service. This API uses an asynchronous callback to return the result. +Sends an event to the screen lock service. This API can be called only by system screen lock applications. It uses an asynchronous callback to return the result. **System capability**: SystemCapability.MiscServices.ScreenLock @@ -296,7 +296,7 @@ screenlock.sendScreenLockEvent('unlockScreenResult', 0, (err, result) => { sendScreenLockEvent(event: String, parameter: number): Promise<boolean> -Sends an event to the screen lock service. This API uses a promise to return the result. +Sends an event to the screen lock service. This API can be called only by system screen lock applications. It uses a promise to return the result. **System capability**: SystemCapability.MiscServices.ScreenLock