How to limit app usage by Screen Time

I would like to know how the "App Limits" feature in Screen Time of the iOS system is developed, which limits the duration of app usage within a day rather than specific time periods. The during parameter in the startMonitoring method of DeviceActivityCenter is a DeviceActivitySchedule object that allows you to control the start and end times of monitoring activities. However, it does not provide a direct way to set the duration of the monitoring. Instead, it focuses on defining the time interval during which the monitoring should occur.

How to limit app usage by Screen Time
 
 
Q