public class SpellChecker extends Object implements SpellCheckerSession.SpellCheckerSessionListener
Modifier and Type | Field and Description |
---|---|
static int |
AVERAGE_WORD_LENGTH |
static int |
MAX_NUMBER_OF_WORDS |
static int |
WORD_ITERATOR_INTERVAL |
Constructor and Description |
---|
SpellChecker(TextView textView) |
Modifier and Type | Method and Description |
---|---|
void |
closeSession() |
void |
onGetSentenceSuggestions(SentenceSuggestionsInfo[] results)
|
void |
onGetSuggestions(SuggestionsInfo[] results)
|
void |
onSelectionChanged() |
void |
onSpellCheckSpanRemoved(SpellCheckSpan spellCheckSpan) |
void |
spellCheck(int start,
int end) |
public static final int MAX_NUMBER_OF_WORDS
public static final int AVERAGE_WORD_LENGTH
public static final int WORD_ITERATOR_INTERVAL
public SpellChecker(TextView textView)
public void closeSession()
public void onSpellCheckSpanRemoved(SpellCheckSpan spellCheckSpan)
public void onSelectionChanged()
public void spellCheck(int start, int end)
public void onGetSuggestions(SuggestionsInfo[] results)
SpellCheckerSession.SpellCheckerSessionListener
SpellCheckerSession.getSuggestions(TextInfo, int)
and SpellCheckerSession.getSuggestions(TextInfo[], int, boolean)
onGetSuggestions
in interface SpellCheckerSession.SpellCheckerSessionListener
results
- an array of SuggestionsInfo
s.
These results are suggestions for TextInfo
s queried by
SpellCheckerSession.getSuggestions(TextInfo, int)
or
SpellCheckerSession.getSuggestions(TextInfo[], int, boolean)
public void onGetSentenceSuggestions(SentenceSuggestionsInfo[] results)
SpellCheckerSession.SpellCheckerSessionListener
onGetSentenceSuggestions
in interface SpellCheckerSession.SpellCheckerSessionListener
results
- an array of SentenceSuggestionsInfo
s.
These results are suggestions for TextInfo
s
queried by SpellCheckerSession.getSentenceSuggestions(TextInfo[], int)
.