TextBoundsInfo.Builder.SetCharacterBidiLevel(Int32[]) 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.
Set the BiDi levels for the character.
[Android.Runtime.Register("setCharacterBidiLevel", "([I)Landroid/view/inputmethod/TextBoundsInfo$Builder;", "", ApiSince=34)]
public Android.Views.InputMethods.TextBoundsInfo.Builder SetCharacterBidiLevel(int[] characterBidiLevels);
[<Android.Runtime.Register("setCharacterBidiLevel", "([I)Landroid/view/inputmethod/TextBoundsInfo$Builder;", "", ApiSince=34)>]
member this.SetCharacterBidiLevel : int[] -> Android.Views.InputMethods.TextBoundsInfo.Builder
Parameters
- characterBidiLevels
- Int32[]
the array of the character's BiDi level. This value cannot be null.
Returns
- Attributes
Remarks
Set the BiDi levels for the character. The bidiLevel of the i-th character in the editor is stored at index (i - start). The length of the given array must equal to (end - start). BiDi level is defined by the unicode bidirectional algorithm. One can determine whether a character's direction is right-to-left (RTL) or left-to-right (LTR) by checking the last bit of the BiDi level. If it's 1, the character is RTL, otherwise the character is LTR. The BiDi level of a character must be in the range of [0, 125].
Android reference for android.view.inputmethod.TextBoundsInfo.Builder.setCharacterBidiLevel.
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.