Xamarin iOS - 广播上传扩展 - 如何调用
Xamarin iOS - Broadcast Upload Extension - how to invoke
最近我将 广播上传扩展程序 添加到 Xamarin.Forms 项目,但是我找不到如何调用扩展程序并将其从容器中呈现给用户的方法应用
我将如何调用扩展并将其呈现给用户?通过 OpenUrl 及其包标识符?
需要这样调用:
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;
});
最近我将 广播上传扩展程序 添加到 Xamarin.Forms 项目,但是我找不到如何调用扩展程序并将其从容器中呈现给用户的方法应用
我将如何调用扩展并将其呈现给用户?通过 OpenUrl 及其包标识符?
需要这样调用:
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;
});