Code example for AccessibilityEvent

Methods: appendRecord

0
 
	@SuppressLint("NewApi") 
	@Override 
	public boolean onRequestSendAccessibilityEvent(View child,
			AccessibilityEvent event) {
		if (super.onRequestSendAccessibilityEvent(child, event)) {
			AccessibilityEvent record = AccessibilityEvent.obtain();
			onInitializeAccessibilityEvent(record);
			child.dispatchPopulateAccessibilityEvent(record);
			event.appendRecord(record);
			return true; 
		} 
		return false; 
	} 
 
	private void performAccessibilityActionsOnSelected() { 
		if (!isAccessibilityManagerEnabled()) { 
			return; 
		} 
		final int position = getSelectedItemPosition();
		if (position >= 0) {