InputMethodService.OnUpdateSelection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the application has reported a new selection region of the text.
[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
Parameters
- oldSelStart
- Int32
- oldSelEnd
- Int32
- newSelStart
- Int32
- newSelEnd
- Int32
- candidatesStart
- Int32
- candidatesEnd
- Int32
- Attributes
Remarks
Called when the application has reported a new selection region of the text. This is called whether or not the input method has requested extracted text updates, although if so it will not receive this call if the extracted text has changed as well.
The default implementation takes care of updating the cursor in the extract text, if it is being shown.
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.