private async void OnDownload_Tapped(object sender, EventArgs e) { var resp = await DisplayActionSheet("Do you want to download the file?", "Save", "Cancel"); if (resp != null && resp.ToString().Length > 0 && resp.Equals("Save")) { viewModel.VisibleLoad = true; var result = await DocumentsService.DownloadFile(viewModel); if (!result) { Common.Instance.ShowToastMessage("Error downloading file!", DoubleResources.DangerSnackBar); } else { Common.Instance.ShowToastMessage("File downloaded", DoubleResources.SuccessSnackBar); } viewModel.VisibleLoad = false; } }