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

1

8

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.

Alcot answered 28/9, 2017 at 16:15 Comment(2)
Broadcast Upload Extension with the help of this, I can list my app in Control Center, like TEAM VIEWER. After that, If I press START BROADCAST, Screen Record will start within 3 seconds. Upto this working fine. If I try to STOP the record by clicking RED COLOR STATUS BAR, then, Record will not save in camera roll. This only doubt I am having. How to save recordings in my camera roll and in my app? Can u guide me?Layard
Can u help me on this?Layard
W
15

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/

Wilkison answered 29/9, 2017 at 21:44 Comment(3)
Broadcast Upload Extension with the help of this, I can list my app in Control Center, like TEAM VIEWER. After that, If I press START BROADCAST, Screen Record will start within 3 seconds. Upto this working fine. If I try to STOP the record by clicking RED COLOR STATUS BAR, then, Record will not save in camera roll. This only doubt I am having. How to save recordings in my camera roll and in my app? Can u guide me?Layard
@Layard better to ask a new questionWilkison
can you help me on this ? #54485867Layard

© 2022 - 2024 — McMap. All rights reserved.