BaseInputConnection.GetSelectedTextFormatted(GetTextFlags) Method

Definition

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

[Android.Runtime.Register("getSelectedText", "(I)Ljava/lang/CharSequence;", "GetGetSelectedText_IHandler")]
public virtual Java.Lang.ICharSequence? GetSelectedTextFormatted (Android.Views.InputMethods.GetTextFlags flags);
[<Android.Runtime.Register("getSelectedText", "(I)Ljava/lang/CharSequence;", "GetGetSelectedText_IHandler")>]
abstract member GetSelectedTextFormatted : Android.Views.InputMethods.GetTextFlags -> Java.Lang.ICharSequence
override this.GetSelectedTextFormatted : Android.Views.InputMethods.GetTextFlags -> Java.Lang.ICharSequence

Parameters

flags
GetTextFlags

Supplies additional options controlling how the text is returned. May be either 0 or GetTextWithStyles.

Returns

Implements

Attributes

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