Language

InputConnectionWrapper.GetSelectedText(GetTextFlags) Method

Definition

Gets the selected text from the target connection as a string.

public string? GetSelectedText(Android.Views.InputMethods.GetTextFlags flags);
member this.GetSelectedText : Android.Views.InputMethods.GetTextFlags -> string

Parameters

flags
GetTextFlags

The options passed to the target's character sequence retrieval method.

Returns

The target's selected text as a string, or null.

Remarks

This overload converts the target's character sequence result to a string without its span objects.

Java documentation for android.view.inputmethod.InputConnectionWrapper.getSelectedText(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