public static void NavigateToUrl(this UIApplication application, string url)
 {
     if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
     {
         application.OpenUrl(NSUrl.FromString(url), new NSDictionary(), null);
     }
     else
     {
         application.OpenUrl(NSUrl.FromString(url));
     }
 }
Example #2
0
        void OpenMap()
        {
            UIApplication app = UIApplication.SharedApplication;

            app.OpenUrl(NSUrl.FromString("http://maps.google.com/maps?q=Paris"));
        }
Example #3
0
        void CallNumber()
        {
            UIApplication app = UIApplication.SharedApplication;

            app.OpenUrl(NSUrl.FromString(string.Format(@"tel:130-032-2837")));
        }