Share via


IInputConnection.RequestCursorUpdates Method

Definition

Overloads

RequestCursorUpdates(Int32, Int32)

Called by the input method to ask the editor for calling back InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) to notify cursor/anchor locations.

RequestCursorUpdates(Int32)

Called by the input method to ask the editor for calling back InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) to notify cursor/anchor locations.

RequestCursorUpdates(Int32, Int32)

Called by the input method to ask the editor for calling back InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) to notify cursor/anchor locations.

[Android.Runtime.Register("requestCursorUpdates", "(II)Z", "GetRequestCursorUpdates_IIHandler:Android.Views.InputMethods.IInputConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)]
public virtual bool RequestCursorUpdates (int cursorUpdateMode, int cursorUpdateFilter);
[<Android.Runtime.Register("requestCursorUpdates", "(II)Z", "GetRequestCursorUpdates_IIHandler:Android.Views.InputMethods.IInputConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)>]
abstract member RequestCursorUpdates : int * int -> bool
override this.RequestCursorUpdates : int * int -> bool

Parameters

cursorUpdateMode
Int32

combination of update modes: #CURSOR_UPDATE_IMMEDIATE, #CURSOR_UPDATE_MONITOR

cursorUpdateFilter
Int32

any combination of data filters: #CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS, #CURSOR_UPDATE_FILTER_EDITOR_BOUNDS, #CURSOR_UPDATE_FILTER_INSERTION_MARKER, #CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS, #CURSOR_UPDATE_FILTER_TEXT_APPEARANCE.

        &lt;p&gt;Pass <code data-dev-comment-type="c">0</code> to disable them. However, if an unknown flag is provided, request will be
        rejected and method will return <code data-dev-comment-type="c">false</code>.&lt;/p&gt;

Returns

true if the request is scheduled. false to indicate that when the application will not call InputMethodManager#updateCursorAnchorInfo( android.view.View, CursorAnchorInfo). Since Android android.os.Build.VERSION_CODES#N until android.os.Build.VERSION_CODES#TIRAMISU, this API returned false when the target application does not implement this method.

Attributes

Remarks

Called by the input method to ask the editor for calling back InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) to notify cursor/anchor locations.

Java documentation for android.view.inputmethod.InputConnection.requestCursorUpdates(int, int).

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

RequestCursorUpdates(Int32)

Called by the input method to ask the editor for calling back InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) to notify cursor/anchor locations.

[Android.Runtime.Register("requestCursorUpdates", "(I)Z", "GetRequestCursorUpdates_IHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool RequestCursorUpdates (int cursorUpdateMode);
[<Android.Runtime.Register("requestCursorUpdates", "(I)Z", "GetRequestCursorUpdates_IHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RequestCursorUpdates : int -> bool

Parameters

cursorUpdateMode
Int32

any combination of update modes and filters: #CURSOR_UPDATE_IMMEDIATE, #CURSOR_UPDATE_MONITOR, and data filters: #CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS, #CURSOR_UPDATE_FILTER_EDITOR_BOUNDS, #CURSOR_UPDATE_FILTER_INSERTION_MARKER, #CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS, #CURSOR_UPDATE_FILTER_TEXT_APPEARANCE. Pass 0 to disable them. However, if an unknown flag is provided, request will be rejected and method will return false.

Returns

true if the request is scheduled. false to indicate that when the application will not call InputMethodManager#updateCursorAnchorInfo( android.view.View, CursorAnchorInfo). Since Android android.os.Build.VERSION_CODES#N until android.os.Build.VERSION_CODES#TIRAMISU, this API returned false when the target application does not implement this method.

Attributes

Remarks

Called by the input method to ask the editor for calling back InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) to notify cursor/anchor locations.

Java documentation for android.view.inputmethod.InputConnection.requestCursorUpdates(int).

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