Language

BaseInputConnection.GetSelectedText(GetTextFlags) Method

Definition

The default implementation returns the text currently selected, or null if none is selected.

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

Parameters

flags
GetTextFlags

The options passed to the character sequence retrieval method.

Returns

The selected text as a string, or null when no text is selected.

Remarks

The default implementation returns the text currently selected, or null if none is selected.

Java documentation for android.view.inputmethod.BaseInputConnection.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