共用方式為


AbstractInputMethodService.AbstractInputMethodSessionImpl.UpdateSelection Method

Definition

This method is called when the selection or cursor in the current target input field has changed.

[Android.Runtime.Register("updateSelection", "(IIIIII)V", "GetUpdateSelection_IIIIIIHandler")]
public abstract void UpdateSelection (int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd);
[<Android.Runtime.Register("updateSelection", "(IIIIII)V", "GetUpdateSelection_IIIIIIHandler")>]
abstract member UpdateSelection : int * int * int * int * int * int -> unit

Parameters

oldSelStart
Int32

The previous text offset of the cursor selection start position.

oldSelEnd
Int32

The previous text offset of the cursor selection end position.

newSelStart
Int32

The new text offset of the cursor selection start position.

newSelEnd
Int32

The new text offset of the cursor selection end position.

candidatesStart
Int32

The text offset of the current candidate text start position.

candidatesEnd
Int32

The text offset of the current candidate text end position.

Implements

Attributes

Remarks

This method is called when the selection or cursor in the current target input field has changed.

Java documentation for android.view.inputmethod.InputMethodSession.updateSelection(int, int, int, int, 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