コード例 #1
0
 private async Task Privacy_Tapped() => await Browser.OpenAsync($"https://www.leadtools.com/corporate/privacy?{DemoUtilities.QueryString("privacy")}");
コード例 #2
0
 private async Task Email_Tapped()
 {
     try
     {
         string subject = string.Format("{0}{1}", !DemoUtilities.AppShareName.StartsWith("LEADTOOLS", StringComparison.OrdinalIgnoreCase) ? "LEADTOOLS " : string.Empty, DemoUtilities.AppShareName);
         string body    = $"I've been using the LEADTOOLS {DemoUtilities.AppShareName} and I highly recommend it for {DemoUtilities.AppShareDescription}. You can check it out here: {DemoUtilities.AppShareLink}?{DemoUtilities.QueryString("email", false)}";
         string command = string.Format("mailto:{0}?subject={1}&body={2}", string.Empty, subject, body);
         await Launcher.OpenAsync(new Uri(new Uri(command).AbsoluteUri));
     }
     catch (Exception ex)
     {
         await DisplayAlert("Error", $"Unable to compose email: {ex.Message}", "OK");
     }
 }
コード例 #3
0
 private async Task Facebook_Tapped() => await Browser.OpenAsync($"https://www.facebook.com/sharer/sharer.php?u={Uri.EscapeDataString($"{DemoUtilities.AppShareLink}?{DemoUtilities.QueryString("facebook", false)}")}");
コード例 #4
0
 private async Task Twitter_Tapped() => await Browser.OpenAsync($"https://www.twitter.com/intent/tweet?text={Uri.EscapeDataString($"Hey! I've been using the #free @LEADTOOLS {DemoUtilities.AppShareName} for {DemoUtilities.AppShareDescription}. I highly recommend you get it here:")}&hashtags={Uri.EscapeDataString(string.Join(",", DemoUtilities.AppShareHashtags))}&url={Uri.EscapeDataString($"{DemoUtilities.AppShareLink}?{DemoUtilities.QueryString("twitter", false)}")}");
コード例 #5
0
 private async void VisitWebsiteButton_Tapped(object sender, EventArgs e) => await Browser.OpenAsync($"{LeadHomepage}?{DemoUtilities.QueryString("visit")}");