Panel
Global registry of remote control commands.
Attributes
| Attribute | Type | Description |
|---|---|---|
| data | dict = {} | Global dictionary mapping command names and aliases to their respective function implementations. |
| meta | dict = {} | Global dictionary storing controller_info_t metadata objects for each registered command, keyed by command name. |
Methods
register()
@classmethod
def register(
*args: any,
**kwargs: any
) - > function
Registers a function as a remote control command in the global registry, supporting both direct application and decorator usage.
Parameters
| Name | Type | Description |
|---|---|---|
| *args | any | The function to be registered when used as a direct call. |
| **kwargs | any | Configuration options passed to the underlying registration logic, such as name, alias, or visibility. |
Returns
| Type | Description |
|---|---|
function | The original function being registered, or a decorator function if no arguments are provided. |