示例#1
0
        private void ActionTagTapped(object sender, Forms9Patch.ActionTagEventArgs e)
        {
            var href = e.Href;

            if (Device.RuntimePlatform == Device.UWP && href.StartsWith("tel:", StringComparison.Ordinal))
            {
                href = href.Replace("tel:", "callto:");
            }
            var uri = new Uri(href);

            Xamarin.Essentials.Launcher.OpenAsync(uri);
        }
示例#2
0
 private void URLTagged(object sender, Forms9Patch.ActionTagEventArgs e)
 {
     throw new System.NotImplementedException($"Id {e.Id}, Href: {e.Href}");
 }