public void DidFinish(RPBroadcastActivityViewController broadcastActivityViewController, RPBroadcastController broadcastController, NSError error) { Console.WriteLine($"BroadcastActivityVC: {broadcastActivityViewController}: BroadcastController: {broadcastController} Error: {error}"); InvokeOnMainThread(() => broadcastActivityViewController.DismissViewController(true, null)); _broadcastController = broadcastController; if (error == null) { broadcastController.StartBroadcast(err => { if (err == null) { broadcastController.Delegate = this; //InvokeOnMainThread(() => //{ // _shareButton.Title = "Stop"; // _shareButton.TintColor = UIColor.Red; //}); } else { // Some error has occurred starting the broadcast, surface it to the user. InvokeOnMainThread(() => { UIAlertController alertController = UIAlertController.Create("Error", err.LocalizedDescription, UIAlertControllerStyle.Alert); alertController.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Cancel, null)); PresentViewController(alertController, true, null); }); } }); } else { Console.WriteLine($"Error returning from BroadcastActivity: {error}"); } }
public void DidUpdateServiceInfo(RPBroadcastController broadcastController, NSDictionary <NSString, INSCoding> serviceInfo) { Console.WriteLine($"DidUpdateServiceInfo: {serviceInfo}"); }
public void DidFinish(RPBroadcastController broadcastController, NSError error) { Console.WriteLine($"DidFinish: Error: {error}"); }