From e920ada98b87704fb281218b2ad8928bf73fb68d Mon Sep 17 00:00:00 2001 From: qimeng Date: Fri, 30 Dec 2022 14:17:16 +0800 Subject: [PATCH] update screenlock.d.ts Signed-off-by: qimeng --- api/@ohos.screenLock.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@ohos.screenLock.d.ts b/api/@ohos.screenLock.d.ts index e6bafe5ddf..551a69f4e3 100644 --- a/api/@ohos.screenLock.d.ts +++ b/api/@ohos.screenLock.d.ts @@ -94,8 +94,20 @@ declare namespace screenLock { function lock(callback: AsyncCallback): void; function lock():Promise; + /** + * Indicates the system event type related to the screenlock management service. + * + * @systemapi Hide this for inner system use. + * @since 9 + */ type EventType = 'beginWakeUp' | 'endWakeUp' | 'beginScreenOn' | 'endScreenOn' | 'beginScreenOff' | 'endScreenOff' | 'unlockScreen' | 'lockScreen' | 'beginExitAnimation' | 'beginSleep' | 'endSleep' | 'changeUser' | 'screenlockEnabled' | 'serviceRestart' + /** + * Indicates the system event type and parameter related to the screenlock management service. + * + * @systemapi Hide this for inner system use. + * @since 9 + */ interface SystemEvent { eventType: EventType, params: string -- Gitee