Search code examples
iosios11

iOS 11: Is it possible to block screen recording?


I have an app which plays video, and I don't want people to use the new iOS-11 feature to record these videos and make them public. That feature is described here.

I could not find any documentation regarding an option for my app to prevent users from recording it.

Can anybody please guide me to anything related to this?

Thank you!


Solution

  • I am publishing here the official response from Apple Developer Technical Support (DTS):

    While there is no way to prevent screen recording, as part of iOS 11, there are new APIs on UIScreen that applications can use to know when the screen is being captured:

    The contents of a screen can be recorded, mirrored, sent over AirPlay, or otherwise cloned to another destination. UIKit sends the UIScreenCapturedDidChange notification when the capture status of the screen changes.

    The object of the notification is the UIScreen object whose isCaptured property changed. There is no userInfo dictionary. Your application can then handle this change and prevent your application content from being captured in whatever way is appropriate for your use.

    HTH!