Code example for AccessibilityEvent

Methods: getEventType, getParcelableData

0
	 
	private boolean notInitiated = true;
	 
	@Override 
	public void onAccessibilityEvent(AccessibilityEvent event) {
		if (event.getEventType() == AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED) {
			Parcelable parcelable = event.getParcelableData();
			 
			if (parcelable instanceof Notification) {
				Log.d("Notification.Debug", parcelable.toString());
			} 
		} 
	} 
	 
	@Override 
	public void onInterrupt() { 
		notInitiated = true;
	} 
	 
	@Override 
	protected void onServiceConnected() {