|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AKeyboardController
User: serso Date: 11/1/12 Time: 8:07 PM
| Method Summary | |
|---|---|
AKeyboardView |
createKeyboardView(android.content.Context context,
android.view.LayoutInflater layoutInflater)
Called by the framework when your view for creating input needs to be generated. |
boolean |
handleBackspace()
|
void |
handleClose()
|
void |
onCreate(android.content.Context context)
Main initialization of the input method component. |
android.view.View |
onCreateCandidatesView()
Called by the framework when your view for showing candidates needs to be generated, like createKeyboardView(android.content.Context, android.view.LayoutInflater). |
void |
onCurrentInputMethodSubtypeChanged(android.view.inputmethod.InputMethodSubtype subtype)
|
void |
onDisplayCompletions(android.view.inputmethod.CompletionInfo[] completions)
This tells us about completions that the editor has determined based on the current text in it. |
void |
onFinishInput()
This is called when the user is done editing a field. |
void |
onInitializeInterface(android.inputmethodservice.InputMethodService inputMethodService)
This is the point where you can do all of your UI initialization. |
boolean |
onKey(int primaryCode,
int[] keyCodes)
|
boolean |
onKeyDown(int keyCode,
android.view.KeyEvent event)
Use this to monitor key events being delivered to the application. |
boolean |
onKeyUp(int keyCode,
android.view.KeyEvent event)
Use this to monitor key events being delivered to the application. |
void |
onStartInput(android.view.inputmethod.EditorInfo attribute,
boolean restarting)
This is the main point where we do our initialization of the input method to begin operating on an application. |
void |
onStartInputView(android.view.inputmethod.EditorInfo attribute,
boolean restarting)
|
void |
onText(CharSequence text)
|
void |
onUpdateSelection(int oldSelStart,
int oldSelEnd,
int newSelStart,
int newSelEnd,
int candidatesStart,
int candidatesEnd)
Deal with the editor reporting movement of its cursor. |
void |
pickDefaultCandidate()
|
void |
pickSuggestionManually(int index)
|
| Method Detail |
|---|
void onCreate(@Nonnull
android.content.Context context)
void onInitializeInterface(@Nonnull
android.inputmethodservice.InputMethodService inputMethodService)
@Nonnull
AKeyboardView createKeyboardView(@Nonnull
android.content.Context context,
@Nonnull
android.view.LayoutInflater layoutInflater)
@Nullable android.view.View onCreateCandidatesView()
createKeyboardView(android.content.Context, android.view.LayoutInflater).
void onStartInput(@Nonnull
android.view.inputmethod.EditorInfo attribute,
boolean restarting)
void onFinishInput()
void onUpdateSelection(int oldSelStart,
int oldSelEnd,
int newSelStart,
int newSelEnd,
int candidatesStart,
int candidatesEnd)
void onDisplayCompletions(@Nullable
android.view.inputmethod.CompletionInfo[] completions)
boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
boolean onKeyUp(int keyCode,
android.view.KeyEvent event)
void onCurrentInputMethodSubtypeChanged(@Nonnull
android.view.inputmethod.InputMethodSubtype subtype)
void onStartInputView(android.view.inputmethod.EditorInfo attribute,
boolean restarting)
boolean onKey(int primaryCode,
@Nullable
int[] keyCodes)
void handleClose()
boolean handleBackspace()
void onText(@Nullable
CharSequence text)
void pickDefaultCandidate()
void pickSuggestionManually(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||