Screen time API on parent/child devices

I’m creating an app with the Screen Time API and I would like to know how to make the app show a parental control editing view for parents and a view for child accounts that shows which apps are blocked. How can I do this?

Screen time API on parent/child devices
 
 
Q