iOS Swift: run screen recording programmatically

Is it possible to start screen recording (through Control Center) without user prompt?

I mean to ask user permission for the first time and after that to start and stop recording programmatically only?

I need to record screen only for specific events.
Please take a look at ReplayKit's RPScreenRecorder: https://developer.apple.com/documentation/replaykit/rpscreenrecorder
I ask about iPhone screen recording (not only specific application).

Description of RPSScreenRecorder: The shared recorder object providing the ability to record audio and video of your app.

So, it isn't what I need
Allowing an app to record the entire screen even when it's in the background would pose serious privacy implications. If you require a screen recording in your app, you can ask users to do it in Control Center and then import the video into your app.

I am also trying not to show the permission alert prompt while recording in app but still after a lot of efforts no luck....

iOS Swift: run screen recording programmatically
 
 
Q