InputMethodService.OnUpdateSelection 方法

定義

當應用程式回報文字新增選取區域時,會被呼叫。

[Android.Runtime.Register("onUpdateSelection", "(IIIIII)V", "GetOnUpdateSelection_IIIIIIHandler")]
public virtual void OnUpdateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd);
[<Android.Runtime.Register("onUpdateSelection", "(IIIIII)V", "GetOnUpdateSelection_IIIIIIHandler")>]
abstract member OnUpdateSelection : int * int * int * int * int * int -> unit
override this.OnUpdateSelection : int * int * int * int * int * int -> unit

參數

oldSelStart
Int32
oldSelEnd
Int32
newSelStart
Int32
newSelEnd
Int32
candidatesStart
Int32
candidatesEnd
Int32
屬性

備註

當應用程式回報文字新增選取區域時,會被呼叫。 無論輸入法是否請求擷取的文字更新,都會呼叫此呼叫,但若有,則若擷取的文字也已變更,則不會收到此呼叫。

預設實作會負責更新擷取文字中的游標(如果有顯示的話)。

Java 文件 android.inputmethodservice.InputMethodService.onUpdateSelection(int, int, int, int, int, int)

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

適用於