Sdílet prostřednictvím


TextSnapshot(SurroundingText, Int32, Int32, Int32) Constructor

Definition

Creates a new instance of TextSnapshot

[Android.Runtime.Register(".ctor", "(Landroid/view/inputmethod/SurroundingText;III)V", "", ApiSince=33)]
public TextSnapshot (Android.Views.InputMethods.SurroundingText surroundingText, int compositionStart, int compositionEnd, int cursorCapsMode);
[<Android.Runtime.Register(".ctor", "(Landroid/view/inputmethod/SurroundingText;III)V", "", ApiSince=33)>]
new Android.Views.InputMethods.TextSnapshot : Android.Views.InputMethods.SurroundingText * int * int * int -> Android.Views.InputMethods.TextSnapshot

Parameters

surroundingText
SurroundingText

SurroundingText of the current edit field.

compositionStart
Int32

The start index of the composing text. -1 if there is no composing text.

compositionEnd
Int32

The end index of the composing text. -1 if there is no composing text.

cursorCapsMode
Int32

The capitalization mode of the first character being edited in the text. See EditorInfo#initialCapsMode.

Attributes

Remarks

Creates a new instance of TextSnapshot

Java documentation for android.view.inputmethod.TextSnapshot.TextSnapshot(android.view.inputmethod.SurroundingText, 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