Schedule a Screenlock for a time in the future? (ScreenTime API))

Hello! I'm currently making an app that requires the ability to activate a screenlock for a point in the future. I currently have my project setup so that I can set a screenlock through a DeviceActivityMonitorExtension (DAM) but regardless of the time interval I use for intervalDidStart and intervalDidEnd the screenlock just seems to apply instantly. I'm under the impression that I'm missing something outside of just passing the interval to the DAM functions. Has anyone accomplished this? Thank you!

Hi,

Are you still having trouble with this?

Schedule a Screenlock for a time in the future? (ScreenTime API))
 
 
Q