The startCaptureWithHandler:completionHandler: method of RPScreenRecorder return the error code RPRecordingErrorUserDeclined in the completionHandler if the user denies permission.
If you call startCaptureWithHandler:completionHandler:
again after the user has declined, the authorization prompt will appear again.