AccessibilityNodeInfo.ExtraDataTextCharacterLocationInWindowKey Field

Definition

Key used to request and locate extra data for text character ___location in window coordinates.

[Android.Runtime.Register("EXTRA_DATA_TEXT_CHARACTER_LOCATION_IN_WINDOW_KEY", ApiSince=36)]
public const string ExtraDataTextCharacterLocationInWindowKey;
[<Android.Runtime.Register("EXTRA_DATA_TEXT_CHARACTER_LOCATION_IN_WINDOW_KEY", ApiSince=36)>]
val mutable ExtraDataTextCharacterLocationInWindowKey : string

Field Value

Implements

Attributes

Remarks

Key used to request and locate extra data for text character ___location in window coordinates. 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.

Providers may advertise that they support text characters in window coordinates using #setAvailableExtraData(List). Services may check if an implementation supports text characters in window coordinates with #getAvailableExtraData().

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

Note that character locations in window bounds are not modified by changes in display magnification.

#refreshWithExtraData(String, Bundle)

Java documentation for android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_IN_WINDOW_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