FileDocCategorySizeDatePackage
ViewParentCompat.javaAPI DocAndroid 5.1 API3727Thu Mar 12 22:22:56 GMT 2015android.support.v4.view

ViewParentCompat

public class ViewParentCompat extends Object
Helper for accessing features in {@link ViewParent} introduced after API level 4 in a backwards compatible fashion.

Fields Summary
static final ViewParentCompatImpl
IMPL
Constructors Summary
private ViewParentCompat()

        final int version = Build.VERSION.SDK_INT;
        if (version >= 14) {
            IMPL = new ViewParentCompatICSImpl();
        } else {
            IMPL = new ViewParentCompatStubImpl();
        }
    

    
Methods Summary
public static booleanrequestSendAccessibilityEvent(android.view.ViewParent parent, android.view.View child, android.view.accessibility.AccessibilityEvent event)
Called by a child to request from its parent to send an {@link AccessibilityEvent}. The child has already populated a record for itself in the event and is delegating to its parent to send the event. The parent can optionally add a record for itself.

Note: An accessibility event is fired by an individual view which populates the event with a record for its state and requests from its parent to perform the sending. The parent can optionally add a record for itself before dispatching the request to its parent. A parent can also choose not to respect the request for sending the event. The accessibility event is sent by the topmost view in the view tree.

param
parent The parent whose method to invoke.
param
child The child which requests sending the event.
param
event The event to be sent.
return
True if the event was sent.

        return IMPL.requestSendAccessibilityEvent(parent, child, event);