言語

InputMethodManager.UpdateSelection(View, Int32, Int32, Int32, Int32) メソッド

定義

現在の選択範囲を報告します。

[Android.Runtime.Register("updateSelection", "(Landroid/view/View;IIII)V", "")]
public void UpdateSelection(Android.Views.View? view, int selStart, int selEnd, int candidatesStart, int candidatesEnd);
[<Android.Runtime.Register("updateSelection", "(Landroid/view/View;IIII)V", "")>]
member this.UpdateSelection : Android.Views.View * int * int * int * int -> unit

パラメーター

view
View
selStart
Int32
selEnd
Int32
candidatesStart
Int32
candidatesEnd
Int32
属性

注釈

現在の選択範囲を報告します。

<strong>Editor 作成者</strong>は、エディターでカーソルが移動するたびにこのメソッドを呼び出す必要があります。 この操作に加えて、キーボードが表示されたりテキスト フィールドにフォーカスが変更されたりするたびに、EditorInfo#initialSelStartが呼び出されるたびに、エディターで常に現在のカーソル値をEditorInfo#initialSelEndおよびandroid.view.View#onCreateInputConnection(EditorInfo)する必要があります。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象