Android.InputMethodServices.InputMethodService.OnUpdateSelection Method
Called when the application has reported a new selection region of the text.

Syntax

[Android.Runtime.Register("onUpdateSelection", "(IIIIII)V", "GetOnUpdateSelection_IIIIIIHandler")]
public virtual void OnUpdateSelection (int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd)

Parameters

oldSelStart
Documentation for this section has not yet been entered.
oldSelEnd
Documentation for this section has not yet been entered.
newSelStart
Documentation for this section has not yet been entered.
newSelEnd
Documentation for this section has not yet been entered.
candidatesStart
Documentation for this section has not yet been entered.
candidatesEnd
Documentation for this section has not yet been entered.

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.

Be careful about changing the text in reaction to this call with methods such as setComposingText, commitText or deleteSurroundingText. If the cursor moves as a result, this method will be called again, which may result in an infinite loop.

The default implementation takes care of updating the cursor in the extract text, if it is being shown.

[Android Documentation]

Requirements

Namespace: Android.InputMethodServices
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3