AccessibilityNodeInfo.ExtraDataTextCharacterLocationKey Field

Definition

Key used to request and locate extra data for text character location.

[Android.Runtime.Register("EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY", ApiSince=26)]
public const string ExtraDataTextCharacterLocationKey;
[<Android.Runtime.Register("EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY", ApiSince=26)>]
val mutable ExtraDataTextCharacterLocationKey : string

Field Value

Implements

Attributes

Remarks

Key used to request and locate extra data for text character location. This key requests that an array of android.graphics.RectFs be added to the extras. This request is made with #refreshWithExtraData(String, Bundle). The arguments taken by this request are two integers: #EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX and #EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH. The starting index must be valid inside the CharSequence returned by #getText(), and the length must be positive.

The data can be retrieved from the Bundle returned by #getExtras() using this string as a key for Bundle#getParcelableArray(String). The android.graphics.RectF will be null for characters that either do not exist or are off the screen.

#refreshWithExtraData(String, Bundle)

Java documentation for android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY.

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