mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-22 21:00:53 +00:00
add callback.deregister to readme
This commit is contained in:
parent
56da8c7fac
commit
7d4f63aa6d
@ -93,9 +93,12 @@ cl.callback.register(input_mute_state_changed)
|
|||||||
|
|
||||||
# returns a list of currently registered events
|
# returns a list of currently registered events
|
||||||
print(cl.callback.get())
|
print(cl.callback.get())
|
||||||
|
|
||||||
|
# You may also deregister a callback
|
||||||
|
cl.callback.deregister(input_mute_state_changed)
|
||||||
```
|
```
|
||||||
|
|
||||||
cl.callback accepts both a single or list of functions.
|
`register(fns)` and `deregister(fns)` accept both single functions and lists of functions.
|
||||||
|
|
||||||
For a full list of events refer to [Events](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#events)
|
For a full list of events refer to [Events](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#events)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user