public void Print(string html, string jobName) { _activityIndicatorPopup = ActivityIndicatorPopup.Create(); var taskCompletionSource = new TaskCompletionSource <ToFileResult>(); InnerPrint(taskCompletionSource, html, jobName); }
public Task PrintAsync(string html, string jobName, FailAction failAction = FailAction.ShowAlert) { _activityIndicatorPopup = ActivityIndicatorPopup.Create(); var taskCompletionSource = new TaskCompletionSource <ToFileResult>(); InnerPrint(taskCompletionSource, html, jobName, failAction); return(taskCompletionSource.Task); }