code: public PendingIntent getDeleteIntent(NotificationEntry entry) {
          Intent intent = new Intent(ACTION_CANCEL);
          intent.putExtra(KEY_ENTRY_ID, entry.ID);
          return PendingIntent.getBroadcast(mContext, genIdForPendingIntent(), intent, 0);
      }
docs: Create an PendingIntent to execute when the notification is explicitly dismissed by the user.
  
  @see android.app.Notification#setDeleteIntent(PendingIntent)
  
  @param entry
  @return PendingIntent