未验证 提交 76cfb9ca 编写于 作者: O openharmony_ci 提交者: Gitee

!7212 screenlock部件接口的完整性和一致性

Merge pull request !7212 from wangdongqi/master
...@@ -177,6 +177,8 @@ on(type: 'beginWakeUp' | 'endWakeUp' | 'beginScreenOn' | 'endScreenOn' | 'beginS ...@@ -177,6 +177,8 @@ on(type: 'beginWakeUp' | 'endWakeUp' | 'beginScreenOn' | 'endScreenOn' | 'beginS
**系统能力**: SystemCapability.MiscServices.ScreenLock **系统能力**: SystemCapability.MiscServices.ScreenLock
**系统API**:此接口为系统接口,三方应用不支持调用。
**参数** **参数**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
...@@ -199,6 +201,8 @@ on(type: 'beginSleep' | 'endSleep' | 'changeUser', callback: Callback\<number\>) ...@@ -199,6 +201,8 @@ on(type: 'beginSleep' | 'endSleep' | 'changeUser', callback: Callback\<number\>)
**系统能力**: SystemCapability.MiscServices.ScreenLock **系统能力**: SystemCapability.MiscServices.ScreenLock
**系统API**:此接口为系统接口,三方应用不支持调用。
**参数** **参数**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
...@@ -220,6 +224,8 @@ on(type: 'screenlockEnabled', callback: Callback\<boolean\>): void ...@@ -220,6 +224,8 @@ on(type: 'screenlockEnabled', callback: Callback\<boolean\>): void
**系统能力**: SystemCapability.MiscServices.ScreenLock **系统能力**: SystemCapability.MiscServices.ScreenLock
**系统API**:此接口为系统接口,三方应用不支持调用。
**参数** **参数**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
...@@ -243,6 +249,8 @@ off(type: 'beginWakeUp' | 'endWakeUp' | 'beginScreenOn' | 'endScreenOn' | 'begin ...@@ -243,6 +249,8 @@ off(type: 'beginWakeUp' | 'endWakeUp' | 'beginScreenOn' | 'endScreenOn' | 'begin
**系统能力**: SystemCapability.MiscServices.ScreenLock **系统能力**: SystemCapability.MiscServices.ScreenLock
**系统API**:此接口为系统接口,三方应用不支持调用。
**参数** **参数**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
...@@ -265,6 +273,8 @@ sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback\<b ...@@ -265,6 +273,8 @@ sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback\<b
**系统能力**: SystemCapability.MiscServices.ScreenLock **系统能力**: SystemCapability.MiscServices.ScreenLock
**系统API**:此接口为系统接口,三方应用不支持调用。
**参数** **参数**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
...@@ -282,12 +292,14 @@ sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback\<b ...@@ -282,12 +292,14 @@ sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback\<b
## screenlock.sendScreenLockEvent<sup>9+</sup> ## screenlock.sendScreenLockEvent<sup>9+</sup>
sendScreenLockEvent(event: String, parameter: number): Promise<boolean> sendScreenLockEvent(event: String, parameter: number): Promise\<boolean\>
应用发送事件到锁屏服务,异步方法。 应用发送事件到锁屏服务,异步方法。
**系统能力**: SystemCapability.MiscServices.ScreenLock **系统能力**: SystemCapability.MiscServices.ScreenLock
**系统API**:此接口为系统接口,三方应用不支持调用。
**参数** **参数**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册