move callbacks/observer examples into examples/events/

This commit is contained in:
Onyx and Iris 2025-02-27 20:33:59 +00:00
parent 3e201443e0
commit a3e3db3c37
5 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# Events
If you want to receive updates on certain events there are two routes you can take:
- Register a class that implements an `on_update(self, event) -> None` method on the `{Remote}.subect` class.
- Register callback functions/methods on the `{Remote}.subect` class, one for each type of update.
Included are examples of both approaches.