diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-01-09 17:51:23 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-01-09 17:51:23 -0800 |
commit | b798689749c64baba81f02e10cf2157c747d6b46 (patch) | |
tree | da394a395ddb1a6cf69193314846b03fe47a397e /core/java/android/view/inputmethod/InputConnection.java | |
parent | f013e1afd1e68af5e3b868c26a653bbfb39538f8 (diff) | |
download | frameworks_base-b798689749c64baba81f02e10cf2157c747d6b46.zip frameworks_base-b798689749c64baba81f02e10cf2157c747d6b46.tar.gz frameworks_base-b798689749c64baba81f02e10cf2157c747d6b46.tar.bz2 |
auto import from //branches/cupcake/...@125939
Diffstat (limited to 'core/java/android/view/inputmethod/InputConnection.java')
-rw-r--r-- | core/java/android/view/inputmethod/InputConnection.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/view/inputmethod/InputConnection.java b/core/java/android/view/inputmethod/InputConnection.java index 5f8ba1f..27461ff 100644 --- a/core/java/android/view/inputmethod/InputConnection.java +++ b/core/java/android/view/inputmethod/InputConnection.java @@ -26,6 +26,9 @@ import android.view.KeyEvent; * {@link InputMethod} back to the application that is receiving its input. It * is used to perform such things as reading text around the cursor, * committing text to the text box, and sending raw key events to the application. + * + * <p>Implementations of this interface should generally be done by + * subclassing {@link BaseInputConnection}. */ public interface InputConnection { /** @@ -137,6 +140,14 @@ public interface InputConnection { public boolean setComposingText(CharSequence text, int newCursorPosition); /** + * Have the text editor finish whatever composing text is currently + * active. This simple leaves the text as-is, removing any special + * composing styling or other state that was around it. The cursor + * position remains unchanged. + */ + public boolean finishComposingText(); + + /** * Commit text to the text box and set the new cursor position. * Any composing text set previously will be removed * automatically. |