addExtraDataToAccessibilityNodeInfo

open fun addExtraDataToAccessibilityNodeInfo(virtualViewId: Int, @NonNull info: AccessibilityNodeInfoCompat, @NonNull extraDataKey: String, @Nullable arguments: Bundle)(source)

Adds extra data to an AccessibilityNodeInfoCompat based on an explicit request for the additional data.

This method only needs to be implemented if a virtual view offers to provide additional data.

Parameters

virtualViewId

The virtual view id used to create the node

info

The info to which to add the extra data

extraDataKey

A key specifying the type of extra data to add to the info. The extra data should be added to the Bundle returned by the info's getExtras method.

arguments

A Bundle holding any arguments relevant for this request.

See also