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)); } }
void OpenMap() { UIApplication app = UIApplication.SharedApplication; app.OpenUrl(NSUrl.FromString("http://maps.google.com/maps?q=Paris")); }
void CallNumber() { UIApplication app = UIApplication.SharedApplication; app.OpenUrl(NSUrl.FromString(string.Format(@"tel:130-032-2837"))); }