harmony 鸿蒙Theme Framework Subsystem – Screen Lock Management Service Changelog
Theme Framework Subsystem – Screen Lock Management Service Changelog
cl.screenlock.1 Instance Name Change
Changed the name of the instance for importing the @ohos.screenLock module from screenlock to screenLock.
Change Impact
None.
Key API/Component Changes
Before change:
screenlock.isLocked();
screenlock.unlock();
screenlock.lock();
screenlock.onSystemEvent(event=>{});
screenlock.sendScreenLockEvent('unlockScreenResult', 0);
screenlock.isScreenLocked()
screenlock.isSecureMode();
screenlock.unlockScreen();
After change:
screenLock.isLocked();
screenLock.unlock();
screenLock.lock();
screenLock.onSystemEvent(event=>{});
screenLock.sendScreenLockEvent('unlockScreenResult', 0);
screenLock.isScreenLocked()
screenLock.isSecureMode();
screenLock.unlockScreen();
Adaptation Guide
Use screenLock in the import statement.
Before change:
import screenlock from '@ohos.screenLock';
After change:
import screenLock from '@ohos.screenLock';
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ArkUI Subsystem Changelog
harmony 鸿蒙Device Management Changelog
harmony 鸿蒙Location Subsystem Changelog
harmony 鸿蒙Input Method Framework Subsystem – Input Method Framework Service Changelog
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦