Share via


IInputMethodSession.UpdateExtractedText(Int32, ExtractedText) Method

Definition

Called by a text editor to report its new extracted text when its contents change.

[Android.Runtime.Register("updateExtractedText", "(ILandroid/view/inputmethod/ExtractedText;)V", "GetUpdateExtractedText_ILandroid_view_inputmethod_ExtractedText_Handler:Android.Views.InputMethods.IInputMethodSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void UpdateExtractedText (int token, Android.Views.InputMethods.ExtractedText? text);
[<Android.Runtime.Register("updateExtractedText", "(ILandroid/view/inputmethod/ExtractedText;)V", "GetUpdateExtractedText_ILandroid_view_inputmethod_ExtractedText_Handler:Android.Views.InputMethods.IInputMethodSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member UpdateExtractedText : int * Android.Views.InputMethods.ExtractedText -> unit

Parameters

token
Int32

The input method supplied token for identifying its request.

text
ExtractedText

The new extracted text.

Attributes

Remarks

Called by a text editor to report its new extracted text when its contents change. This will only be called if the input method calls InputConnection#getExtractedText(ExtractedTextRequest, int) InputConnection.getExtractedText() with the option to report updates.

Java documentation for android.view.inputmethod.InputMethodSession.updateExtractedText(int, android.view.inputmethod.ExtractedText).

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.

Applies to