InputConnectionWrapper.GetExtractedText 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.
Gets the editor's extracted text and can request updates when it changes.
[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
The extraction result returned by the target connection, or null.
Implements
- Attributes
Remarks
The target connection can send updates to the input method when its text changes.
To request updates, cast Monitor to GetTextFlags for the flags parameter.
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.