TextProofreader

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
TextProofreaderResult
proofread(String text)
Performs proofreading on the input text.
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)

Parameters
context The Android context.
options The configuration options.
Returns

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.