Code example for AccessibilityEvent

Methods: appendRecord

0
            // with the content of the status bar a whole. This way an accessibility service 
            // may announce the current item as well as the entire content if appropriate. 
            AccessibilityEvent record = AccessibilityEvent.obtain();
            onInitializeAccessibilityEvent(record);
            dispatchPopulateAccessibilityEvent(record);
            event.appendRecord(record);
            return true; 
        } 
        return false; 
    } 
}