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.

Flupp
  • 856
  • 10
  • 24
  • `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? – McDonal_11 Jan 28 '19 at 09:23
  • Can u help me on this? – McDonal_11 Jan 28 '19 at 10:06

1 Answers1

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/

TheNextman
  • 12,428
  • 2
  • 36
  • 75
  • `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? – McDonal_11 Jan 28 '19 at 09:22
  • @McDonal_11 better to ask a new question – TheNextman Jan 28 '19 at 16:16
  • can you help me on this ? https://stackoverflow.com/questions/54485367/screen-recording-when-my-ios-app-is-in-background-with-replaykit – McDonal_11 Feb 01 '19 at 19:42