InputMethodService.OnUpdateSelection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當應用程式回報文字新增選取區域時,會被呼叫。
[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
- 屬性
備註
當應用程式回報文字新增選取區域時,會被呼叫。 無論輸入法是否請求擷取的文字更新,都會呼叫此呼叫,但若有,則若擷取的文字也已變更,則不會收到此呼叫。
預設實作會負責更新擷取文字中的游標(如果有顯示的話)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。