AccessibilityNodeInfo.AvailableExtraData Property

Definition

Get the extra data available for this node. -or- Set the extra data available for this node.

public virtual System.Collections.Generic.IList<string>? AvailableExtraData { [Android.Runtime.Register("getAvailableExtraData", "()Ljava/util/List;", "GetGetAvailableExtraDataHandler", ApiSince=26)] get; [Android.Runtime.Register("setAvailableExtraData", "(Ljava/util/List;)V", "GetSetAvailableExtraData_Ljava_util_List_Handler", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getAvailableExtraData", "()Ljava/util/List;", "GetGetAvailableExtraDataHandler", ApiSince=26)>]
[<set: Android.Runtime.Register("setAvailableExtraData", "(Ljava/util/List;)V", "GetSetAvailableExtraData_Ljava_util_List_Handler", ApiSince=26)>]
member this.AvailableExtraData : System.Collections.Generic.IList<string> with get, set

Property Value

An unmodifiable list of keys corresponding to extra data that can be requested.

Attributes

Remarks

Property getter documentation:

Get the extra data available for this node.

Some data that is useful for some accessibility services is expensive to compute, and would place undue overhead on apps to compute all the time. That data can be requested with #refreshWithExtraData(String, Bundle).

Java documentation for android.view.accessibility.AccessibilityNodeInfo.getAvailableExtraData().

Property setter documentation:

Set the extra data available for this node.

<strong>Note:</strong> When a View passes in a non-empty list, it promises that it will populate the node's extras with corresponding pieces of information in View#addExtraDataToAccessibilityNodeInfo(AccessibilityNodeInfo, String, Bundle).

<strong>Note:</strong> Cannot be called from an android.accessibilityservice.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.setAvailableExtraData(java.util.List<java.lang.String>).

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