public interface InputBehaviorStrategy
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getStrategyName()
Gets strategy name (for logging)
|
default void |
handleBeginBatchEdit(ComposingContext context)
Handles beginBatchEdit call
|
void |
handleCommitText(java.lang.CharSequence text,
int newCursorPosition,
ComposingContext context)
Handles commitText call
|
void |
handleDeleteSurroundingText(int beforeLength,
int afterLength,
ComposingContext context)
Handles deleteSurroundingText call
|
default void |
handleEndBatchEdit(ComposingContext context)
Handles endBatchEdit call
|
void |
handleFinishComposingText(ComposingContext context)
Handles finishComposingText call
|
boolean |
handleSendKeyEvent(android.view.KeyEvent event,
ComposingContext context)
Handles sendKeyEvent call
|
void |
handleSetComposingRegion(int start,
int end,
ComposingContext context)
Handles setComposingRegion call
|
void |
handleSetComposingText(java.lang.CharSequence text,
int newCursorPosition,
ComposingContext context)
Handles setComposingText call
|
void handleSetComposingRegion(int start,
int end,
ComposingContext context)
start - Starting position of the regionend - Ending position of the regioncontext - Composing contextvoid handleSetComposingText(java.lang.CharSequence text,
int newCursorPosition,
ComposingContext context)
text - Composing textnewCursorPosition - New cursor positioncontext - Composing contextvoid handleCommitText(java.lang.CharSequence text,
int newCursorPosition,
ComposingContext context)
text - Text to commitnewCursorPosition - New cursor positioncontext - Composing contextvoid handleDeleteSurroundingText(int beforeLength,
int afterLength,
ComposingContext context)
beforeLength - Number of characters to delete before the cursorafterLength - Number of characters to delete after the cursorcontext - Composing contextvoid handleFinishComposingText(ComposingContext context)
context - Composing contextboolean handleSendKeyEvent(android.view.KeyEvent event,
ComposingContext context)
event - Keyboard eventcontext - Composing contextdefault void handleBeginBatchEdit(ComposingContext context)
context - Composing contextdefault void handleEndBatchEdit(ComposingContext context)
context - Composing contextjava.lang.String getStrategyName()