Udostępnij za pośrednictwem


BaseInputConnection.GetTextBeforeCursorFormatted(Int32, GetTextFlags) Method

Definition

The default implementation returns the given amount of text from the current cursor position in the buffer.

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

Parameters

length
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

Implements

Attributes

Remarks

The default implementation returns the given amount of text from the current cursor position in the buffer.

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