Technical Q&A QA1970

Responding to screen capture in iOS 11.

Q:  How can I prevent my application's content from being captured by screen recording, AirPlay, or Screen Mirroring?

A: The iOS 11 SDK introduces new APIs on UIScreen that applications can use to know when the screen is being captured:

Your application can then handle this change and prevent your application content from being captured in whatever way is appropriate for your use.

For example, if you are a media application you would observe changes to UIScreen.isCaptured and if its value is true you could stop playback and present a useful dialog to the user letting them know that playback was paused due to being captured.

If your application uses FairPlay Streaming (FPS) your video content will automatically not be captured by the iOS 11 screen recording feature or QuickTime Player on macOS. The portion of your application that is playing the content will be blacked out.

To learn more about FairPlay Streaming see the FairPlay Streaming page on the Apple Developer website.



Document Revision History


DateNotes
2017-10-25

New document that this document discusses how applications can use new APIs in the iOS 11 SDK to respond to being captured by AirPlay Mirroring and screen recording.