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

假装没事ソ 提交于 2019-11-28 00:27:03

问题


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

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.


回答1:


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/



来源:https://stackoverflow.com/questions/46473851/how-to-forward-screen-capture-in-ios-11-control-center-to-your-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!