FileDocCategorySizeDatePackage
AccessibilityNodeProviderCompatJellyBean.javaAPI DocAndroid 5.1 API2331Thu Mar 12 22:22:56 GMT 2015android.support.v4.view.accessibility

AccessibilityNodeProviderCompatJellyBean

public class AccessibilityNodeProviderCompatJellyBean extends Object
JellyBean specific AccessibilityNodeProvider API implementation.

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.ObjectnewAccessibilityNodeProviderBridge(android.support.v4.view.accessibility.AccessibilityNodeProviderCompatJellyBean$AccessibilityNodeInfoBridge bridge)

        return new AccessibilityNodeProvider() {
            @Override
            public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) {
                return (AccessibilityNodeInfo) bridge.createAccessibilityNodeInfo(virtualViewId);
            }

            @Override
            @SuppressWarnings("unchecked")
            public List<AccessibilityNodeInfo> findAccessibilityNodeInfosByText(
                    String text, int virtualViewId) {
                // Use some voodoo to avoid creating intermediary instances.
                return (List<AccessibilityNodeInfo>) (List<?>)
                    bridge.findAccessibilityNodeInfosByText(text, virtualViewId);
            }

            @Override
            public boolean performAction(int virtualViewId, int action, Bundle arguments) {
                return bridge.performAction(virtualViewId, action, arguments);
            }
        };