-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Add Plugin API -> VisibilityChangedEventHandler #2216
Add Plugin API -> VisibilityChangedEventHandler #2216
Conversation
This comment has been minimized.
This comment has been minimized.
Sounds good to me. @JamesNZL you may like this one |
Ooh, love it! |
@jjw24 Maybe we can add this to the recent release. There isn't much code change and should not break anything. |
Was going ask if I did the PR early enough for this to happen 😄 |
Yeah I don't see why not. I will take a look soon. |
Not currently, but I can whip one up quickly if you need? |
Yes please, could you whip one up with quickly, I want to test to see how it works in a plugin. |
Is this okay? |
Worth noting, subscribing to this event means the plugin will continue to be subscribed even if it is disabled. This however is a shortcoming of Flow's own disable plugin mechanism so at this stage not much we can do for this feature. Maybe in the future disabling a plugin should also call System.IDisposable on plugins so they can unsubscribe from this feature. |
Co-authored-by: Jeremy Wu <jeremy24wu@gmail.com>
fixed the build problem for you ;) |
Thanks! Beat me too it! ;) |
Added a visibility changed event handler to the public api.
Main reason for this is to allow caching in query method without the need of a timer.