0

Recently I added Broadcast Upload Extension to Xamarin.Forms project however I can't find a way how to invoke the extension and present it to the user from the container app.

How would I invoke the extension and present it to the user? Through OpenUrl and it's bundle identifier?

Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98

2 Answers2

1

Needs to be invoked like this:

var bundle = NSBundle.MainBundle.GetUrlForResource("Foo.iOS.ScreenShareExtensionUI", "appex", "PlugIns");

            RPScreenRecorder.SharedRecorder.StartRecording(true, error =>
            {
                if (error != null)
                    LogService.Log(error.LocalizedFailureReason, LogService.LogLevel.ERROR, "StartRecording");
            });
            RPBroadcastActivityViewController.LoadBroadcastActivityViewController(bundle.AbsoluteUrl.ToString(), (controller, error) =>
            {
                UIApplication.SharedApplication.KeyWindow.RootViewController.PresentViewController(controller, true, null);

                RPBroadcastActivityViewController = controller;
            });
Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98
0

I think this is repeated somehow here

You need to double-check the NSExtension key.

The value of the NSExtensionPointIdentifier for BroadcastUploadExtension project is written as com.apple.broadcast-services by default and should be com.apple.broadcast-services-upload

The value of the NSExtensionPointIdentifier for BroadcastUIExtension project is written as com.apple.broadcast-services by default and should be com.apple.broadcast-services-setupui

Refrence

Loay
  • 1
  • 1