Langue

CursorUpdate Enum

Definition

Enumerates values returned by the Immediate, and Monitor members.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum CursorUpdate
[<System.Flags>]
type CursorUpdate = 
Inheritance
CursorUpdate
Attributes

Fields

Name Value Description
None 0
Immediate 1

The editor is requested to call InputMethodManager.updateCursorAnchorInfo(android.view.View,CursorAnchorInfo) at once, as soon as possible, regardless of cursor/anchor position changes. This flag can be used together with CURSOR_UPDATE_MONITOR.

Note by default all of CURSOR_UPDATE_FILTER_EDITOR_BOUNDS, CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS, CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS, CURSOR_UPDATE_FILTER_TEXT_APPEARANCE, and CURSOR_UPDATE_FILTER_INSERTION_MARKER, are included but specifying them can filter-out others. It can be CPU intensive to include all, filtering specific info is recommended.

Android reference for android.view.inputmethod.InputConnection.CURSOR_UPDATE_IMMEDIATE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Monitor 2

The editor is requested to call InputMethodManager.updateCursorAnchorInfo(android.view.View,CursorAnchorInfo) whenever cursor/anchor position is changed. To disable monitoring, call InputConnection.requestCursorUpdates(int) again with this flag off.

This flag can be used together with CURSOR_UPDATE_IMMEDIATE.

Note by default all of CURSOR_UPDATE_FILTER_EDITOR_BOUNDS, CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS, CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS, CURSOR_UPDATE_FILTER_TEXT_APPEARANCE, and CURSOR_UPDATE_FILTER_INSERTION_MARKER, are included but specifying them can filter-out others. It can be CPU intensive to include all, filtering specific info is recommended.

Android reference for android.view.inputmethod.InputConnection.CURSOR_UPDATE_MONITOR.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to