1e41f4b71Sopenharmony_ci# Theme Framework Subsystem – Screen Lock Management Service Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.screenlock.1 Instance Name Change 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ciChanged the name of the instance for importing the **@ohos.screenLock** module from **screenlock** to **screenLock**. 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci**Change Impact** 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ciNone. 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci**Key API/Component Changes** 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ciBefore change: 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci ```js 16e41f4b71Sopenharmony_ciscreenlock.isLocked(); 17e41f4b71Sopenharmony_ciscreenlock.unlock(); 18e41f4b71Sopenharmony_ciscreenlock.lock(); 19e41f4b71Sopenharmony_ciscreenlock.onSystemEvent(event=>{}); 20e41f4b71Sopenharmony_ciscreenlock.sendScreenLockEvent('unlockScreenResult', 0); 21e41f4b71Sopenharmony_ciscreenlock.isScreenLocked() 22e41f4b71Sopenharmony_ciscreenlock.isSecureMode(); 23e41f4b71Sopenharmony_ciscreenlock.unlockScreen(); 24e41f4b71Sopenharmony_ci ``` 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ciAfter change: 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci ```js 29e41f4b71Sopenharmony_ciscreenLock.isLocked(); 30e41f4b71Sopenharmony_ciscreenLock.unlock(); 31e41f4b71Sopenharmony_ciscreenLock.lock(); 32e41f4b71Sopenharmony_ciscreenLock.onSystemEvent(event=>{}); 33e41f4b71Sopenharmony_ciscreenLock.sendScreenLockEvent('unlockScreenResult', 0); 34e41f4b71Sopenharmony_ciscreenLock.isScreenLocked() 35e41f4b71Sopenharmony_ciscreenLock.isSecureMode(); 36e41f4b71Sopenharmony_ciscreenLock.unlockScreen(); 37e41f4b71Sopenharmony_ci ``` 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ci**Adaptation Guide** 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ciUse **screenLock** in the **import** statement. 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ciBefore change: 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci```js 46e41f4b71Sopenharmony_ciimport screenlock from '@ohos.screenLock'; 47e41f4b71Sopenharmony_ci``` 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ciAfter change: 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ci```js 52e41f4b71Sopenharmony_ciimport screenLock from '@ohos.screenLock'; 53e41f4b71Sopenharmony_ci``` 54