Say the user sets a schedule with 15 minutes of time allowed in an app set. At the 10-minute mark the user decides to change the apps which are monitored.
I need to know the remaining time from the original 15 minutes to reset the schedule with this new value. I saw there was a view called DeviceAcivityReport, but I don’t want to show a report to the user, just programmatically grab the remaining time.
Is there a code example of this flow somewhere? I’ve either completely missed the supplied apple example code or there is just none to be had.