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