Lingua

TextBoundsInfo.Builder.SetLineSegmentFinder(SegmentFinder) Method

Definition

Set the SegmentFinder that locates the line boundaries.

[Android.Runtime.Register("setLineSegmentFinder", "(Landroid/text/SegmentFinder;)Landroid/view/inputmethod/TextBoundsInfo$Builder;", "", ApiSince=34)]
public Android.Views.InputMethods.TextBoundsInfo.Builder SetLineSegmentFinder(Android.Text.SegmentFinder lineSegmentFinder);
[<Android.Runtime.Register("setLineSegmentFinder", "(Landroid/text/SegmentFinder;)Landroid/view/inputmethod/TextBoundsInfo$Builder;", "", ApiSince=34)>]
member this.SetLineSegmentFinder : Android.Text.SegmentFinder -> Android.Views.InputMethods.TextBoundsInfo.Builder

Parameters

lineSegmentFinder
SegmentFinder

set the SegmentFinder that locates the line boundaries. This value cannot be null.

Returns

Attributes

Remarks

Set the SegmentFinder that locates the line boundaries. Aside from the hard breaks in the text, it should also locate the soft line breaks added by the editor. It is expected that the characters within the same line is rendered on the same baseline. (Except for some text formatted as subscript and superscript.) Please note that only the line segments within the range from start to end will be available to the IME. The remaining information will be discarded during serialization for better performance.

Android reference for android.view.inputmethod.TextBoundsInfo.Builder.setLineSegmentFinder.

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