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

AccessibilityNodeProviderCompatKitKat

public class AccessibilityNodeProviderCompatKitKat extends Object
KitKat-specific AccessibilityNodeProvider API implementation.

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.ObjectnewAccessibilityNodeProviderBridge(android.support.v4.view.accessibility.AccessibilityNodeProviderCompatKitKat$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);
            }

            @Override
            public AccessibilityNodeInfo findFocus(int focus) {
                return (AccessibilityNodeInfo) bridge.findFocus(focus);
            }
        };