Taal

InputConnectionWrapper.GetTextAfterCursorFormatted Method

Definition

Gets text after the selection from the target connection.

[Android.Runtime.Register("getTextAfterCursor", "(II)Ljava/lang/CharSequence;", "GetGetTextAfterCursor_IIHandler")]
public virtual Java.Lang.ICharSequence? GetTextAfterCursorFormatted(int n, Android.Views.InputMethods.GetTextFlags flags);
[<Android.Runtime.Register("getTextAfterCursor", "(II)Ljava/lang/CharSequence;", "GetGetTextAfterCursor_IIHandler")>]
abstract member GetTextAfterCursorFormatted : int * Android.Views.InputMethods.GetTextFlags -> Java.Lang.ICharSequence
override this.GetTextAfterCursorFormatted : int * Android.Views.InputMethods.GetTextFlags -> Java.Lang.ICharSequence

Parameters

n
Int32

The expected length of the text.

flags
GetTextFlags

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

Returns

The character sequence after the selection returned by the target connection, or null.

Implements

Attributes

Remarks

The returned sequence can contain fewer than n characters.

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