Esempio n. 1
0
 public override bool ShowHtml(string title, string buttonText, string html)
 {
     using (var pool = new NSAutoreleasePool ()) {
         var thread = new Thread (OpenBrowserOnThread);
         BrowserCommand browserCommand = new BrowserCommand();
         browserCommand.Title = title;
         browserCommand.ButtonText = buttonText;
         browserCommand.Html = html;
         browserCommand.CheckNullsAndSetDefaults();
         thread.Start (browserCommand);
     }
     return true;
 }
Esempio n. 2
0
 public override bool OpenBrowser(string title, string buttonText, string url)
 {
     using (var pool = new NSAutoreleasePool ()) {
         var thread = new Thread (OpenBrowserOnThread);
         BrowserCommand browserCommand = new BrowserCommand();
         browserCommand.Title = title;
         browserCommand.ButtonText = buttonText;
         browserCommand.Url = Uri.EscapeUriString(url);
         browserCommand.CheckNullsAndSetDefaults();
         thread.Start (browserCommand);
     }
     return true;
 }