return new AccessibilityDelegate() {
@Override
public boolean dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event) {
return bridge.dispatchPopulateAccessibilityEvent(host, event);
}
@Override
public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) {
bridge.onInitializeAccessibilityEvent(host, event);
}
@Override
public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info) {
bridge.onInitializeAccessibilityNodeInfo(host, info);
}
@Override
public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event) {
bridge.onPopulateAccessibilityEvent(host, event);
}
@Override
public boolean onRequestSendAccessibilityEvent(ViewGroup host, View child,
AccessibilityEvent event) {
return bridge.onRequestSendAccessibilityEvent(host, child, event);
}
@Override
public void sendAccessibilityEvent(View host, int eventType) {
bridge.sendAccessibilityEvent(host, eventType);
}
@Override
public void sendAccessibilityEventUnchecked(View host, AccessibilityEvent event) {
bridge.sendAccessibilityEventUnchecked(host, event);
}
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider(View host) {
return (AccessibilityNodeProvider) bridge.getAccessibilityNodeProvider(host);
}
@Override
public boolean performAccessibilityAction(View host, int action, Bundle args) {
return bridge.performAccessibilityAction(host, action, args);
}
};