public async Task <bool> PostImageAsync(SKBitmap croppedBitmap) { var textExtractor = new TextExtractor(); var response = await textExtractor.PostImageAsync(); return(true); }
public async Task <bool> TestPostImageAsync() { try { var result = await textExtractor.PostImageAsync(); if (result) { var displayResult = textExtractor.response; Console.WriteLine(displayResult); } return(true); } catch (HttpRequestException) { await DisplayAlert("Server Issue", "We're sorry, there was an issue contacting the application server. Please try again after waiting a minute.", "Okay"); } return(false); }