Code example for AccessibilityEvent

Methods: getEventType

0
        public boolean matches(Object matched) {
            if (!(matched instanceof AccessibilityEvent)) {
                return false; 
            } 
            AccessibilityEvent receivedEvent = (AccessibilityEvent) matched;
            return mExpectedEvent.getEventType() == receivedEvent.getEventType();
        } 
 
        public void appendTo(StringBuffer buffer) {
            buffer.append("sendAccessibilityEvent()");
            buffer.append(" with event type \"");
            buffer.append(mExpectedEvent.getEventType());
            buffer.append("\"");
        } 
    } 
 
    /** 
     * Matcher for {@link IAccessibilityManagerClient}s. 
     */ 
    private static class AnyIAccessibilityManagerClientMather implements IArgumentMatcher { 
        public boolean matches(Object matched) {