Taal

BaseInputConnection.GetSurroundingText(Int32, Int32, Int32) Method

Definition

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

[Android.Runtime.Register("getSurroundingText", "(III)Landroid/view/inputmethod/SurroundingText;", "GetGetSurroundingText_IIIHandler", ApiSince=31)]
public virtual Android.Views.InputMethods.SurroundingText? GetSurroundingText(int beforeLength, int afterLength, int flags);
[<Android.Runtime.Register("getSurroundingText", "(III)Landroid/view/inputmethod/SurroundingText;", "GetGetSurroundingText_IIIHandler", ApiSince=31)>]
abstract member GetSurroundingText : int * int * int -> Android.Views.InputMethods.SurroundingText
override this.GetSurroundingText : int * int * int -> Android.Views.InputMethods.SurroundingText

Parameters

beforeLength
Int32

Value is 0 or greater

afterLength
Int32

Value is 0 or greater

flags
Int32

Options for the returned text: 0 or the integer value of WithStyles.

Returns

The available surrounding text and selection, or null when they cannot be obtained.

Implements

Attributes

Remarks

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

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