1e41f4b71Sopenharmony_ci# Screen Lock Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.screenlock.1 System Events Added to EventType 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci**Access Level** 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciSystem API 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Reason for Change** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciThe **strongAuthChanged** and **screenLockDisabledChanged** system events need to be added to report the enabling of strong authentication and disabling of screen lock. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Change Impact** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThis change is a compatible change. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ciBefore change: The **strongAuthChanged** and **screenLockDisabledChanged** system events are not supported. 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciAfter change: The **strongAuthChanged** and **screenLockDisabledChanged** system events are supported. 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**Start API Level** 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ciAPI 12 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci**Change Since** 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.38 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci**Adaptation Guide** 30e41f4b71Sopenharmony_ciThe following is the sample code for registering system lock events: 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ci```typescript 33e41f4b71Sopenharmony_citry { 34e41f4b71Sopenharmony_ci let isSuccess = screenLock.onSystemEvent((event: screenLock.SystemEvent) => { 35e41f4b71Sopenharmony_ci console.log(`Succeeded in Registering the system event which related to screenlock. eventType: ${event.eventType}`) 36e41f4b71Sopenharmony_ci }); 37e41f4b71Sopenharmony_ci} catch (err) { 38e41f4b71Sopenharmony_ci let error = err as BusinessError; 39e41f4b71Sopenharmony_ci console.error(`Failed to register the system event which related to screenlock, Code: ${error.code}, message: ${error.message}`) 40e41f4b71Sopenharmony_ci} 41e41f4b71Sopenharmony_ci``` 42