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

run an event when a notification starts #146

Open
nvurgaft opened this issue Nov 14, 2018 · 1 comment
Open

run an event when a notification starts #146

nvurgaft opened this issue Nov 14, 2018 · 1 comment

Comments

@nvurgaft
Copy link

There is currently an .onClose method that can be setup to run when a notification closes, after looking up the docs and the code I've found no evidence for an opposite event that would fire when a notification is spawned.

My use case is that I want to play a sound when a notification is shown. So such an event would need to be defined at .config and would need to be run before any similar event would be run by a notification instance.

Is there a solution for this without poking inside the code and patching it ? if not I would probably fork the code and do it in the weekend.

@nvurgaft
Copy link
Author

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

1 participant