Files
SysTray-X/webext/schema_windowEvent.json

60 lines
1.3 KiB
JSON
Raw Permalink Normal View History

2020-05-10 20:55:27 +02:00
[
{
"namespace": "windowEvent",
2020-08-02 16:59:53 +02:00
"functions": [
{
"name": "setCloseType",
"type": "function",
"description": "Set the close type.",
2022-06-16 09:55:45 +02:00
"async": true,
2020-08-02 16:59:53 +02:00
"parameters": [
{
"type": "integer",
"name": "type",
"minimum": 0,
2023-08-05 10:46:33 +02:00
"maximum": 4
2020-08-02 16:59:53 +02:00
}
]
2023-11-13 20:14:30 +01:00
},
{
"name": "setMainWindowId",
"type": "function",
"description": "Set the main window id.",
"async": true,
"parameters": [
{
"type": "integer",
"name": "type"
}
]
},
{
"name": "forceClose",
"type": "function",
"description": "Really close the window.",
"async": true,
"parameters": [
{
"type": "integer",
"name": "type"
}
]
2020-08-02 16:59:53 +02:00
}
],
2020-05-10 20:55:27 +02:00
"events": [
2023-11-13 20:14:30 +01:00
{
"name": "onNewWindow",
"type": "function",
"description": "Fires when the user opens a new window.",
"parameters": []
},
2020-08-02 16:59:53 +02:00
{
2020-05-10 20:55:27 +02:00
"name": "onCloseButtonClick",
"type": "function",
2023-11-13 20:14:30 +01:00
"description": "Fires when the user clicks on the close button of a window.",
2020-05-10 20:55:27 +02:00
"parameters": []
}
]
}
]