Language

AssistStructure.ViewNode.TextSelectionStart Property

Definition

If #getText() is non-null, this is where the current selection starts.

public virtual int TextSelectionStart { [Android.Runtime.Register("getTextSelectionStart", "()I", "GetGetTextSelectionStartHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getTextSelectionStart", "()I", "GetGetTextSelectionStartHandler", ApiSince=23)>]
member this.TextSelectionStart : int

Property Value

The recorded selection start as a zero-based UTF-16 offset. The value is -1 if no text record exists or the text was last set without selection offsets. A negative value does not identify a valid text position.

Attributes

Remarks

If #getText() is non-null, this is where the current selection starts.

It's only relevant when the AssistStructure is used for assist purposes, not for autofill purposes.

Java documentation for android.app.assist.AssistStructure.ViewNode.getTextSelectionStart().

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