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

怎么关闭/停止事件监听? #146

Open
wingswing1 opened this issue Sep 21, 2023 · 3 comments
Open

怎么关闭/停止事件监听? #146

wingswing1 opened this issue Sep 21, 2023 · 3 comments
Labels
Doubt ❔ 疑惑 Any doubts about this repository Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month

Comments

@wingswing1
Copy link

使用events.observeNotification()或者events.observeToast()后,怎么停止监听?

@sucutey
Copy link

sucutey commented Sep 27, 2023

events.removeAllListeners(eventName)

@wingswing1
Copy link
Author

events.removeAllListeners(eventName)

感谢

@SuperMonster003
Copy link
Owner

还可以用 events.removeNotificationObserver()events.removeToastObserver().

@SuperMonster003 SuperMonster003 added Doubt ❔ 疑惑 Any doubts about this repository Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month labels Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Doubt ❔ 疑惑 Any doubts about this repository Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month
Projects
None yet
Development

No branches or pull requests

3 participants