Device Activity Framework iPhone , iPad

Hi dear , I am a beginner developer I have an application idea , and I think its great idea 😎

I think the application needs to use Device activity frame work , and UIScreen class , even if the app is in background or terminated , the problem is I don't know how to use these classes and frameworks 🤷🏻‍♂️

the questions are :

  1. can I detect UITouch event on UIScreen object even if the app is in background or terminated

  2. How to get the current activity name of the device

can I detect UITouch event on UIScreen object even if the app is in background or terminated

You can’t do this from the background.

How to get the current activity name of the device

You can’t. The various Screen Time APIs were deliberately structured to allow third-party apps to provide parental control features without actually learning what the user is doing. For more background on this, see WWDC 2021 Session 10123 Meet the Screen Time API.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Device Activity Framework iPhone , iPad
 
 
Q