Code example for AccessibilityEvent

Methods: setChecked, setClassName

0
	} 
 
	@Override 
	public void onInitializeAccessibilityEvent( AccessibilityEvent event ) {
		super.onInitializeAccessibilityEvent( event );
		event.setClassName( AviaryHighlightImageButton.class.getName() );
		event.setChecked( mChecked );
	} 
 
	@Override 
	public void onInitializeAccessibilityNodeInfo( AccessibilityNodeInfo info ) {
		super.onInitializeAccessibilityNodeInfo( info );
 
		if ( android.os.Build.VERSION.SDK_INT >= 14 ) {
			info.setClassName( AviaryHighlightImageButton.class.getName() );
		} 
 
		info.setCheckable( mToggleEnabled );
		info.setChecked( mChecked );
	}