Loading api/current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -44351,6 +44351,7 @@ package android.view.inputmethod { method public int getCursorCapsMode(int); method public android.text.Editable getEditable(); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -44514,6 +44515,7 @@ package android.view.inputmethod { method public abstract boolean finishComposingText(); method public abstract int getCursorCapsMode(int); method public abstract android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public abstract android.os.Handler getHandler(); method public abstract java.lang.CharSequence getSelectedText(int); method public abstract java.lang.CharSequence getTextAfterCursor(int, int); method public abstract java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -44545,6 +44547,7 @@ package android.view.inputmethod { method public boolean finishComposingText(); method public int getCursorCapsMode(int); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int); api/system-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -47112,6 +47112,7 @@ package android.view.inputmethod { method public int getCursorCapsMode(int); method public android.text.Editable getEditable(); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -47275,6 +47276,7 @@ package android.view.inputmethod { method public abstract boolean finishComposingText(); method public abstract int getCursorCapsMode(int); method public abstract android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public abstract android.os.Handler getHandler(); method public abstract java.lang.CharSequence getSelectedText(int); method public abstract java.lang.CharSequence getTextAfterCursor(int, int); method public abstract java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -47306,6 +47308,7 @@ package android.view.inputmethod { method public boolean finishComposingText(); method public int getCursorCapsMode(int); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int); api/test-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -44368,6 +44368,7 @@ package android.view.inputmethod { method public int getCursorCapsMode(int); method public android.text.Editable getEditable(); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -44531,6 +44532,7 @@ package android.view.inputmethod { method public abstract boolean finishComposingText(); method public abstract int getCursorCapsMode(int); method public abstract android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public abstract android.os.Handler getHandler(); method public abstract java.lang.CharSequence getSelectedText(int); method public abstract java.lang.CharSequence getTextAfterCursor(int, int); method public abstract java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -44562,6 +44564,7 @@ package android.view.inputmethod { method public boolean finishComposingText(); method public int getCursorCapsMode(int); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int); core/java/android/view/inputmethod/BaseInputConnection.java +5 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.view.inputmethod; import android.content.Context; import android.content.res.TypedArray; import android.os.Bundle; import android.os.Handler; import android.os.SystemClock; import android.text.Editable; import android.text.NoCopySpan; Loading Loading @@ -602,6 +603,10 @@ public class BaseInputConnection implements InputConnection { return false; } public Handler getHandler() { return null; } /** * The default implementation places the given text into the editable, * replacing any existing composing text. The new text is marked as Loading core/java/android/view/inputmethod/InputConnection.java +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.view.inputmethod; import android.os.Bundle; import android.os.Handler; import android.view.KeyCharacterMap; import android.view.KeyEvent; Loading Loading @@ -786,4 +787,15 @@ public interface InputConnection { * {@link InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo)}. */ public boolean requestCursorUpdates(int cursorUpdateMode); /** * Called by the {@link InputMethodManager} to enable application developers to specify a * dedicated {@link Handler} on which incoming IPC method calls from input methods will be * dispatched. * * <p>Note: This does nothing when called from input methods.</p> * * @return {@code null} to use the default {@link Handler}. */ public Handler getHandler(); } Loading
api/current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -44351,6 +44351,7 @@ package android.view.inputmethod { method public int getCursorCapsMode(int); method public android.text.Editable getEditable(); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -44514,6 +44515,7 @@ package android.view.inputmethod { method public abstract boolean finishComposingText(); method public abstract int getCursorCapsMode(int); method public abstract android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public abstract android.os.Handler getHandler(); method public abstract java.lang.CharSequence getSelectedText(int); method public abstract java.lang.CharSequence getTextAfterCursor(int, int); method public abstract java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -44545,6 +44547,7 @@ package android.view.inputmethod { method public boolean finishComposingText(); method public int getCursorCapsMode(int); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int);
api/system-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -47112,6 +47112,7 @@ package android.view.inputmethod { method public int getCursorCapsMode(int); method public android.text.Editable getEditable(); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -47275,6 +47276,7 @@ package android.view.inputmethod { method public abstract boolean finishComposingText(); method public abstract int getCursorCapsMode(int); method public abstract android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public abstract android.os.Handler getHandler(); method public abstract java.lang.CharSequence getSelectedText(int); method public abstract java.lang.CharSequence getTextAfterCursor(int, int); method public abstract java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -47306,6 +47308,7 @@ package android.view.inputmethod { method public boolean finishComposingText(); method public int getCursorCapsMode(int); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int);
api/test-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -44368,6 +44368,7 @@ package android.view.inputmethod { method public int getCursorCapsMode(int); method public android.text.Editable getEditable(); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -44531,6 +44532,7 @@ package android.view.inputmethod { method public abstract boolean finishComposingText(); method public abstract int getCursorCapsMode(int); method public abstract android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public abstract android.os.Handler getHandler(); method public abstract java.lang.CharSequence getSelectedText(int); method public abstract java.lang.CharSequence getTextAfterCursor(int, int); method public abstract java.lang.CharSequence getTextBeforeCursor(int, int); Loading Loading @@ -44562,6 +44564,7 @@ package android.view.inputmethod { method public boolean finishComposingText(); method public int getCursorCapsMode(int); method public android.view.inputmethod.ExtractedText getExtractedText(android.view.inputmethod.ExtractedTextRequest, int); method public android.os.Handler getHandler(); method public java.lang.CharSequence getSelectedText(int); method public java.lang.CharSequence getTextAfterCursor(int, int); method public java.lang.CharSequence getTextBeforeCursor(int, int);
core/java/android/view/inputmethod/BaseInputConnection.java +5 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.view.inputmethod; import android.content.Context; import android.content.res.TypedArray; import android.os.Bundle; import android.os.Handler; import android.os.SystemClock; import android.text.Editable; import android.text.NoCopySpan; Loading Loading @@ -602,6 +603,10 @@ public class BaseInputConnection implements InputConnection { return false; } public Handler getHandler() { return null; } /** * The default implementation places the given text into the editable, * replacing any existing composing text. The new text is marked as Loading
core/java/android/view/inputmethod/InputConnection.java +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.view.inputmethod; import android.os.Bundle; import android.os.Handler; import android.view.KeyCharacterMap; import android.view.KeyEvent; Loading Loading @@ -786,4 +787,15 @@ public interface InputConnection { * {@link InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo)}. */ public boolean requestCursorUpdates(int cursorUpdateMode); /** * Called by the {@link InputMethodManager} to enable application developers to specify a * dedicated {@link Handler} on which incoming IPC method calls from input methods will be * dispatched. * * <p>Note: This does nothing when called from input methods.</p> * * @return {@code null} to use the default {@link Handler}. */ public Handler getHandler(); }