Skip to content

Commit

Permalink
add matrix of what works to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kfrancis committed Mar 27, 2024
1 parent 495ea92 commit 7ec058b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ This example README has some dummy APIs you'll need to replace and only acts as

**NO**. This is a work in progress and is not ready for production use. It is not feature complete and is not yet stable.

## What Works Matrix

| Platform | iOS | Android | Windows | macOS |
|----------|-----|---------|---------|-------|
| Xamarin | WIP | WIP | WIP | WIP |
| MAUI | Yes | Yes | Yes | Yes |

## Why

Why am I making this? I'm making this because I want to make it easier for developers to do OCR in their apps. I want to make it so that you can just use this plugin and not have to worry about the platform specifics.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin.Maui.OCR/OcrImplementation.macios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async Task<OcrResult> RecognizeTextAsync(byte[] imageData, CancellationTo
{
if (!_isInitialized)
{
throw new InvalidOperationException("Init must be called before RecognizeTextAsync.");
throw new InvalidOperationException($"{nameof(InitAsync)} must be called before {nameof(RecognizeTextAsync)}.");
}

ct.ThrowIfCancellationRequested();
Expand Down

0 comments on commit 7ec058b

Please sign in to comment.