Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to forward Screen Capture in iOS 11 Control Center to your App?

I saw that TeamViewer allows iOS Screen Capturing by leveraging the Screen Recorder feature from the Control Center in iOS 11. As seen here: teamviewer example screen

How is that possible? I checked out the ReplayKit, but couldn't find any feature that would hook up to the Control Center like that.

like image 885
Flupp Avatar asked Sep 28 '17 16:09

Flupp


1 Answers

You need to add a Broadcast Upload Extension to your app.

(In Xcode, File > New Target, select "Broadcast Upload Extension")

Once the extension is installed (alongside your app), a force-touch on the screen recording icon in control center will give the option of using your broadcast extension, instead of the default ("Camera Roll").

There is very little documentation on iOS Screen Recording right now. But this WWDC video talks about it at a high level:

https://developer.apple.com/videos/play/wwdc2017/606/

like image 119
TheNextman Avatar answered Oct 21 '22 15:10

TheNextman