public class Editor extends Object
Modifier and Type | Method and Description |
---|---|
void |
addSpanWatchers(Spannable text) |
void |
beginBatchEdit() |
void |
endBatchEdit() |
WordIterator |
getWordIterator() |
void |
onCommitCorrection(CorrectionInfo info)
Called by the framework in response to a text auto-correction (such as fixing a typo using a
a dictionnary) from the current input method, provided by it calling
InputConnection.commitCorrection(android.view.inputmethod.CorrectionInfo) InputConnection.commitCorrection()}. |
boolean |
performLongClick(boolean handled) |
void |
setError(CharSequence error,
Drawable icon) |
protected void |
stopSelectionActionMode() |
public void setError(CharSequence error, Drawable icon)
public WordIterator getWordIterator()
public boolean performLongClick(boolean handled)
public void beginBatchEdit()
public void endBatchEdit()
protected void stopSelectionActionMode()
public void onCommitCorrection(CorrectionInfo info)
InputConnection.commitCorrection(android.view.inputmethod.CorrectionInfo)
InputConnection.commitCorrection()}. The default
implementation flashes the background of the corrected word to provide feedback to the user.info
- The auto correct info about the text that was corrected.public void addSpanWatchers(Spannable text)