add screen commonEnent

Signed-off-by: wangtong <wangtong94@huawei.com>
This commit is contained in:
wangtong 2023-03-27 10:38:49 +08:00
parent ebd774a830
commit 81ba276ec0
2 changed files with 17 additions and 2 deletions

View File

@ -194,6 +194,7 @@ declare namespace commonEventManager {
/**
* This commonEvent means when the user is present after the device is awakened.
* @deprecated since 10
*/
COMMON_EVENT_USER_PRESENT = "usual.event.USER_PRESENT",
@ -1168,7 +1169,19 @@ declare namespace commonEventManager {
* This is a protected common event that can only be sent by system.
* @since 10
*/
COMMON_EVENT_RADIO_STATE_CHANGE = "usual.event.RADIO_STATE_CHANGE"
COMMON_EVENT_RADIO_STATE_CHANGE = "usual.event.RADIO_STATE_CHANGE",
/**
* This commonEvent means when the screen is unlocked.
* @since 10
*/
COMMON_EVENT_SCREEN_UNLOCKED = "usual.event.SCREEN_UNLOCKED",
/**
* This commonEvent means when the screen is locked.
* @since 10
*/
COMMON_EVENT_SCREEN_LOCKED = "usual.event.SCREEN_LOCKED"
}
}

Binary file not shown.