setrthinking.blogg.se

Swift share extension open app
Swift share extension open app






swift share extension open app
  1. Swift share extension open app how to#
  2. Swift share extension open app manual#
  3. Swift share extension open app code#

You should now see a folder for the Extension in your project this folder holds the code for implementing screen sharing. In the Product Name field, enter a name for the Extension, for example, Agora-ScreenShare, and click Finish. In the pop-up window, choose Broadcast Upload Extension on the iOS page, and click Next. Open the project file with Xcode, and select Editor > Add Target.

swift share extension open app

Create an Extension for screen sharingĬreate a Broadcast Upload Extension with the following steps: For details, see Start a Video Call or Start Interactive Video Streaming.

Swift share extension open app how to#

The implementation method introduced in this section applies to iOS 12.0 or later.īefore you begin, ensure that you understand how to start a video call or start interactive video streaming. It prompts the user to start screen sharing by tapping this button. Method 2: Use RPSystemBroadcastPickerView, which is added by Apple in iOS 12.0, to pop up the "Start screen sharing" button in the app interface. Method 1: Prompt the user to tap and hold the Screen Sharing button in the control center of the iOS system, and select the Extension you created to start screen sharing. You can choose either of the following two methods:

Swift share extension open app manual#

[self startScreenCapture, and prompt the user's manual action to make the app start screen sharing. (void)broadcastStartedWithSetupInfo:(NSDictionary *)setupInfo If you need to add some business logic in addition to using the functionality in amework provided by Agora, modify it by replacing the code in the SampleHandler.h file with the following code: // Objective-C If you only need to use the functionality in amework provided by Agora, modify it by checking Target for the Extension you created, and setting the Value of the NSExtension > NSExtensionPrincipalClass key in the Info settings from SampleHandler to AgoraReplayKitHandler. Modify the SampleHandler.h file to modify the code logic that implements screen sharing: Xcode automatically creates the Extension folder, which contains the SampleHandler.h file. In the pop-up window, fill in Product Name and other fields, uncheck Include UI Extension, and click Finish. In Xcode, click File > New > Target., select Broadcast Upload Extension in the pop-up window, and click Next. Use the custom video source feature of the SDK to capture the screen recording data and send it to other users in the channel.Ĭreate a Broadcast Upload Extension to enable the screen sharing process: This dynamic library wraps the following functionality: For details, see Start a Video Call or Start Interactive Video Streaming.Įnsure that amework is integrated into the project. Agora recommends that you use this feature on iPhone X or later models.īefore you begin, ensure that you understand how to start a video call or start interactive video streaming.

  • This feature requires a high-performance device.
  • Due to system limitations, screen sharing is only available for iOS 12.0 or later.







  • Swift share extension open app