public class
TextProofreader
Performs proofreading on text.
Nested Classes
| interface | TextProofreader.ProofreaderResultCallback | Interface for receiving proofreading results. | |
| class | TextProofreader.TextProofreaderOptions | Holds the configuration for creating a TextProofreader instance. |
|
Public Methods
| void |
close()
|
| static TextProofreader |
createFromOptions(Context context, TextProofreader.TextProofreaderOptions options)
Creates a
TextProofreader instance from TextProofreader.TextProofreaderOptions. |
| TextProofreaderResult | |
| void |
proofreadStreaming(String text, TextProofreader.ProofreaderResultCallback callback)
Performs asynchronous proofreading on the input text.
|
Inherited Methods
Public Methods
public void close ()
public static TextProofreader createFromOptions (Context context, TextProofreader.TextProofreaderOptions options)
Creates a TextProofreader instance from TextProofreader.TextProofreaderOptions.
Parameters
| context | The Android context. |
|---|---|
| options | The configuration options. |
Returns
- A
TextProofreaderinstance.
public TextProofreaderResult proofread (String text)
Performs proofreading on the input text.
Parameters
| text | The input text to be proofread. |
|---|
Returns
- The proofreading result.
public void proofreadStreaming (String text, TextProofreader.ProofreaderResultCallback callback)
Performs asynchronous proofreading on the input text.
Parameters
| text | The input text to be proofread. |
|---|---|
| callback | The callback to receive the results. |