Språk

InputConnectionWrapper.RequestCursorUpdates Method

Definition

Overloads

Name Description
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", ApiSince=34)]
public virtual bool RequestCursorUpdates(int cursorUpdateMode, int cursorUpdateFilter);
[<Android.Runtime.Register("requestCursorUpdates", "(II)Z", "GetRequestCursorUpdates_IIHandler", ApiSince=34)>]
abstract member RequestCursorUpdates : int * int -> bool
override this.RequestCursorUpdates : int * int -> bool

Parameters

cursorUpdateMode
Int32

Value is either 0 or a combination of the following: InputConnection.CURSOR_UPDATE_IMMEDIATE; InputConnection.CURSOR_UPDATE_MONITOR

cursorUpdateFilter
Int32

Value is either 0 or a combination of the following: InputConnection.CURSOR_UPDATE_FILTER_EDITOR_BOUNDS; InputConnection.CURSOR_UPDATE_FILTER_CHARACTER_BOUNDS; InputConnection.CURSOR_UPDATE_FILTER_INSERTION_MARKER; InputConnection.CURSOR_UPDATE_FILTER_VISIBLE_LINE_BOUNDS; InputConnection.CURSOR_UPDATE_FILTER_TEXT_APPEARANCE

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 Build.VERSION_CODES.N until Build.VERSION_CODES.TIRAMISU, this API returned false when the target application does not implement this method.

Implements

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.InputConnectionWrapper.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")]
public virtual bool RequestCursorUpdates(int cursorUpdateMode);
[<Android.Runtime.Register("requestCursorUpdates", "(I)Z", "GetRequestCursorUpdates_IHandler")>]
abstract member RequestCursorUpdates : int -> bool
override this.RequestCursorUpdates : int -> bool

Parameters

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 Build.VERSION_CODES.N until Build.VERSION_CODES.TIRAMISU, this API returned false when the target application does not implement this method.

Implements

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.InputConnectionWrapper.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