Event#
- class carb.eventdispatcher.Event#
Bases:
pybind11_object
Event.
Contains the event_name and payload for a dispatched event.
Methods
__init__
(*args, **kwargs)get
(self, key_name)Accesses a payload item by key name.
has_key
(self, key_name)Returns True if a given key name is present in the payload.
Attributes
The name of the event
- __init__(*args, **kwargs)#
- get(
- self: carb.eventdispatcher._eventdispatcher.Event,
- key_name: str,
Accesses a payload item by key name.
- Parameters:
key_name – The name of a key to find in the payload.
- Returns:
None if the key is not present, otherwise returns an object representative of the type in the payload.
- has_key(
- self: carb.eventdispatcher._eventdispatcher.Event,
- key_name: str,
Returns True if a given key name is present in the payload.
- Parameters:
key_name – The name of a key to check against the payload.
- Returns:
`True` if the key is present in the payload; `False` otherwise.
- property event_name#
The name of the event