Check notification has closed in android
<p>I want to check if notification was closed by user?  Is this possible? I mean, if notification is closed by swiping then I would like set a value to DB.</p>

<p>I know how to check if the notification is active but not sure how to get the notification closed by swiping?</p>

<p>How to do it? Can somebody help me out?</p>

<p>Thanks!</p>