Språk

InputConnectionWrapper.GetExtractedText Method

Definition

Retrieve the current text in the input connection's editor, and monitor for any changes to it.

[Android.Runtime.Register("getExtractedText", "(Landroid/view/inputmethod/ExtractedTextRequest;I)Landroid/view/inputmethod/ExtractedText;", "GetGetExtractedText_Landroid_view_inputmethod_ExtractedTextRequest_IHandler")]
public virtual Android.Views.InputMethods.ExtractedText? GetExtractedText(Android.Views.InputMethods.ExtractedTextRequest? request, Android.Views.InputMethods.GetTextFlags flags);
[<Android.Runtime.Register("getExtractedText", "(Landroid/view/inputmethod/ExtractedTextRequest;I)Landroid/view/inputmethod/ExtractedText;", "GetGetExtractedText_Landroid_view_inputmethod_ExtractedTextRequest_IHandler")>]
abstract member GetExtractedText : Android.Views.InputMethods.ExtractedTextRequest * Android.Views.InputMethods.GetTextFlags -> Android.Views.InputMethods.ExtractedText
override this.GetExtractedText : Android.Views.InputMethods.ExtractedTextRequest * Android.Views.InputMethods.GetTextFlags -> Android.Views.InputMethods.ExtractedText

Parameters

request
ExtractedTextRequest

Description of how the text should be returned. ExtractedTextRequest

flags
GetTextFlags

Additional options to control the client, either 0 or GetExtractedTextMonitor.

Returns

Implements

Attributes

Remarks

Retrieve the current text in the input connection's editor, and monitor for any changes to it. This function returns with the current text, and optionally the input connection can send updates to the input method when its text changes.

Java documentation for android.view.inputmethod.InputConnectionWrapper.getExtractedText(android.view.inputmethod.ExtractedTextRequest, int).

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