Thank you for the post. There is another threads discussing screenshots. There is an API for developer, however, I believe in MDM you can control and disable screen captures https://developer.apple.com/documentation/devicemanagement/privacypreferencespolicycontrol/services
Hope other developers provide more context on this and opinions as I can only provide you the link to the delegate to detect screenshots and the MDM settings.
There is an API that allows you to detect when a user is taking a screenshot. At that time, when the delegate is called, you can show any view you want, including a view that informs the user that a screenshot is not supported.
The API is available at:
https://developer.apple.com/documentation/uikit/uiapplication/userdidtakescreenshotnotification
The related thread is:
https://forums.developer.apple.com/forums/thread/736512
MDM: https://developer.apple.com/documentation/devicemanagement/privacypreferencespolicycontrol/services
“ScreenCapture
[PrivacyPreferencesPolicyControl.Services.Identity]
Allows the application to capture (read) the contents of the system display. Access to the contents can’t be given in a profile; it can only be denied.”
While there are workflows about notifying other individuals that the content was screenshotted, preventing someone from taking a picture with another device or copying the content is unavoidable, unfortunately.
Albert Pascual
Worldwide Developer Relations.