private async void vw1_Navigating(object sender, WebNavigatingEventArgs e) { if (e.Url.Contains("frmAssessAssignView")) { progressBar.Progress = 0.1; Device.StartTimer(TimeSpan.FromSeconds(1), () => { if (progressBar.Progress <= 1) { progressBar.ProgressTo(progressBar.Progress + 0.1, 5000, Easing.Linear); return(true); } return(false); }); if (vw1.IsVisible == false) { activity_indicator.IsVisible = true; } var lst = vw1.Cookies.GetCookies(new Uri(e.Url)).GetAllCookies().ToList(); //var lst = vw1.Cookies.GetAllCookies().ToList(); var str1 = myUtils.MakeCSV(lst.Select(x => x.Name).ToList(), ","); var cnt = vw1.Cookies.Count; Trace.WriteLine("Going to: " + e.Url + ", Cookie count: " + cnt + ", Values=" + str1); } else if (e.Url.Contains("blob.core.windows.net")) { GeneralUtils.DownloadFile(e.Url); return; } else { e.Cancel = true; await RSNavigationPage.Instance.PopAsync(); } }
private async void TapGestureRecognizer_Tapped(object sender, EventArgs e) { GeneralUtils.DownloadFile(downloadFile); }
private async void Ctl_DocumentSaveInitiated(object sender, Syncfusion.SfPdfViewer.XForms.DocumentSaveInitiatedEventArgs e) { GeneralUtils.DownloadFile(downloadFile); }