Home
last modified time | relevance | path

Searched refs:isScreenLocked (Results 1 – 5 of 5) sorted by relevance

/base/theme/screenlock_mgr/
DREADME.md26 function isScreenLocked(callback: AsyncCallback<boolean>): void; query the screenlock status,callba…
27 function isScreenLocked(): Promise<boolean>; void; query the screenlock status,Promise mode
40 screenLock.isScreenLocked()
42 console.log(`success to screenLock.isScreenLocked: ${value}`);
44 console.error(`failed to screenLock.isScreenLocked because ${err.message}`)
49 screenLock.isScreenLocked((err, value) => {
51 console.error(`failed to screenLock.isScreenLocked because ${err.message}`);
54 console.log(`success to screenLock.isScreenLocked: ${value}`);
DREADME_ZH.md40 | isScreenLocked(callback: AsyncCallback&lt;boolean&gt;): void; | 判断屏幕是否锁屏。callback方式 |
41 | isScreenLocked(): Promise&lt;boolean&gt;; | 判断屏幕是否锁屏。Promise方式 |
86 screenLock.isScreenLocked()
96 screenLock.isScreenLocked((err, data) => {
/base/theme/screenlock_mgr/services/src/
Dscreenlock_manager_stub.cpp87 bool isScreenLocked = IsScreenLocked(); in OnIsScreenLocked() local
88 reply.WriteBool(isScreenLocked); in OnIsScreenLocked()
Dscreenlock_system_ability.cpp409 bool isScreenLocked = stateValue_.GetScreenlockedState(); in IsScreenLocked() local
410 SCLOCK_HILOGD("IsScreenLocked = %{public}d", isScreenLocked); in IsScreenLocked()
411 return isScreenLocked; in IsScreenLocked()
/base/theme/screenlock_mgr/frameworks/js/napi/test/unittest/src/
DScreenlock.test.js52 screenLock.isScreenLocked((err, data) => {
244 screenLock.isScreenLocked().then((result) => {