Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to clear notification before it happens #23

Open
TranThuPhuong opened this issue Aug 29, 2021 · 1 comment
Open

how to clear notification before it happens #23

TranThuPhuong opened this issue Aug 29, 2021 · 1 comment

Comments

@TranThuPhuong
Copy link

I used your project as an exercise. But I don't know of any way to clear the notification when it hasn't happened yet.
For example, I want to change my plan and don't want to be notified on that date anymore, something like delete it
Please help me

@taimo0r
Copy link

taimo0r commented Feb 12, 2022

You can easily do that by invoking the cancel method from a button click listener like this:

cancelBtn.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
NotifyMe.cancel(getContext(),"Key");
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants