AssistStructure.ViewNode.GetTextLineCharOffsets Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return per-line offsets into the text returned by #getText()
.
[Android.Runtime.Register("getTextLineCharOffsets", "()[I", "GetGetTextLineCharOffsetsHandler", ApiSince=23)]
public virtual int[] GetTextLineCharOffsets ();
[<Android.Runtime.Register("getTextLineCharOffsets", "()[I", "GetGetTextLineCharOffsetsHandler", ApiSince=23)>]
abstract member GetTextLineCharOffsets : unit -> int[]
override this.GetTextLineCharOffsets : unit -> int[]
Returns
- Attributes
Remarks
Return per-line offsets into the text returned by #getText()
. Each entry in the array is a formatted line of text, and the value it contains is the offset into the text string where that line starts. May return null if there is no line information.
It's only relevant when the AssistStructure
is used for assist purposes, not for autofill purposes.
Java documentation for android.app.assist.AssistStructure.ViewNode.getTextLineCharOffsets()
.
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.