AbstractInputMethodService.AbstractInputMethodSessionImpl.UpdateSelection 方法

定義

當當前目標輸入欄位的選取或游標改變時,會呼叫此方法。

[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

參數

oldSelStart
Int32

游標選擇起始位置的前一個文字偏移量。

oldSelEnd
Int32

前一個文字偏移量是游標選擇結束位置的。

newSelStart
Int32

游標選擇起始位置的新文字偏移量。

newSelEnd
Int32

游標選擇結束位置的新文字偏移量。

candidatesStart
Int32

目前候選文本起始位置的文字偏移量。

candidatesEnd
Int32

目前候選文本結束位置的文字偏移量。

實作

屬性

備註

當當前目標輸入欄位的選取或游標改變時,會呼叫此方法。

Java 文件 android.view.inputmethod.InputMethodSession.updateSelection(int, int, int, int, int, int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於