Single notify event observable. More...
Inherits object.
Public Member Functions | |
cvb.EventCookie | register_event (self, Callable[[cvb.NotifyArgs], None] handler) |
Register a listener to this observable. More... | |
None | unregister_event (self, cvb.EventCookie event_cookie) |
Manually unregister a listener to this observable. More... | |
Single notify event observable.
cvb.EventCookie register_event | ( | self, | |
Callable[[cvb.NotifyArgs], None] | handler | ||
) |
Register a listener to this observable.
handler : Callable[[cvb.NotifyArgs], None] Listener, to this observable.
cvb.EventCookie Event cookie, to manually unregister the listener.
None unregister_event | ( | self, | |
cvb.EventCookie | event_cookie | ||
) |
Manually unregister a listener to this observable.
event_cookie : cvb.EventCookie Event cookie, obtained from registering the listener.