Check users using Record Screen from Access Control or third party app

I use RelayKit to record screen in my app, but I want to detect if user use Record Screen from Access Control or third party app. I tried UIScreen.capturedDidChangeNotification but it doesn't check if I'm recording the screen in my app, or using Record Screen from Access Control. Do you have any ideas

Replies

using timer and check: UIScreen.main.isCaptured