AccessibilityNodeProviderCompat

public class AccessibilityNodeProviderCompat


Helper for accessing android.view.accessibility.AccessibilityNodeProvider.

Summary

Constants

static final int

The virtual id for the hosting View.

Public constructors

Creates a new instance.

Creates a new instance wrapping an android.view.accessibility.AccessibilityNodeProvider.

Public methods

void
addExtraDataToAccessibilityNodeInfo(
    int virtualViewId,
    @NonNull AccessibilityNodeInfoCompat info,
    @NonNull String extraDataKey,
    @Nullable Bundle arguments
)

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

@Nullable AccessibilityNodeInfoCompat
createAccessibilityNodeInfo(int virtualViewId)

Returns an AccessibilityNodeInfoCompat representing a virtual view, i.e.

@Nullable List<AccessibilityNodeInfoCompat>
findAccessibilityNodeInfosByText(@NonNull String text, int virtualViewId)

Finds AccessibilityNodeInfoCompats by text.

@Nullable AccessibilityNodeInfoCompat
findFocus(int focus)

Find the virtual view, i.e.

@Nullable Object
boolean
performAction(int virtualViewId, int action, @Nullable Bundle arguments)

Performs an accessibility action on a virtual view, i.e.

Constants

HOST_VIEW_ID

public static final int HOST_VIEW_ID

The virtual id for the hosting View.

Public constructors

AccessibilityNodeProviderCompat

public AccessibilityNodeProviderCompat()

Creates a new instance.

AccessibilityNodeProviderCompat

public