diff options
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
| -rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index a355d1e6927f..c51d1a78e5ad 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -249,6 +249,16 @@ public class InputMethodService extends AbstractInputMethodService { */ public static final int IME_VISIBLE = 0x2; + /** + * The IME does not require cursor/anchor position. + */ + public static final int CURSOR_ANCHOR_MONITOR_MODE_NONE = 0x0; + + /** + * The IME expects that {@link #onUpdateCursor(Rect)} is called back. + */ + public static final int CURSOR_ANCHOR_MONITOR_MODE_CURSOR_RECT = 0x1; + InputMethodManager mImm; int mTheme = 0; @@ -1702,6 +1712,13 @@ public class InputMethodService extends AbstractInputMethodService { } /** + * Update the cursor/anthor monitor mode. + */ + public void setCursorAnchorMonitorMode(int monitorMode) { + mImm.setCursorAnchorMonitorMode(mToken, monitorMode); + } + + /** * Close this input method's soft input area, removing it from the display. * The input method will continue running, but the user can no longer use * it to generate input by touching the screen. |
