mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-10-29 14:32:25 -05:00
10 lines
328 B
Python
10 lines
328 B
Python
|
|
class Plugin:
|
||
|
|
# A normal method. It can be called from JavaScript using call_plugin_function("method_1", argument1, argument2)
|
||
|
|
async def add(self, left, right):
|
||
|
|
return left + right
|
||
|
|
|
||
|
|
|
||
|
|
# Asyncio-compatible long-running code, executed in a task when the plugin is loaded
|
||
|
|
async def _main(self):
|
||
|
|
pass
|