未验证 提交 3240e436 编写于 作者: O openharmony_ci 提交者: Gitee

!20380 【3.2-Release】翻译完成 19202

Merge pull request !20380 from ester.zhou/C2-19202
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册