AccessibilityNodeInfo.ExtraDataTextCharacterLocationKey Field
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.
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.RectF
s 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)
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.