fix: add involves edge from task to agent:nomos at creation
Some checks failed
ci / build-test (push) Has been cancelled
ci / docker-build (push) Has been cancelled
ci / web (push) Has been cancelled
Desktop App / Build Linux (amd64) (push) Has been cancelled
Desktop App / Attach to Release (push) Has been cancelled

Plus sync vendor directory for Docker build compatibility.
This commit is contained in:
2026-08-11 22:03:12 +02:00
parent 7d6a3320d4
commit febc153b7f
3384 changed files with 945212 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
# Events
This package is used to generate the event management code and to allow quick addition of events.
## Usage
1. Add events to `events.txt`
2. Run `task generate:events`
## Notes
For events that you want to handle manually, add a `!` to the end of the event name and
add custom code into the appropriate platform. See [this PR](https://github.com/wailsapp/wails/pull/2991)
for an example of how to do this.

View File

@@ -0,0 +1,58 @@
package events
import "runtime"
var defaultWindowEventMapping = map[string]map[WindowEventType]WindowEventType{
"windows": {
Windows.WindowClosing: Common.WindowClosing,
Windows.WindowInactive: Common.WindowLostFocus,
Windows.WindowClickActive: Common.WindowFocus,
Windows.WindowActive: Common.WindowFocus,
Windows.WindowMaximise: Common.WindowMaximise,
Windows.WindowMinimise: Common.WindowMinimise,
Windows.WindowRestore: Common.WindowRestore,
Windows.WindowUnMaximise: Common.WindowUnMaximise,
Windows.WindowUnMinimise: Common.WindowUnMinimise,
Windows.WindowFullscreen: Common.WindowFullscreen,
Windows.WindowUnFullscreen: Common.WindowUnFullscreen,
Windows.WindowShow: Common.WindowShow,
Windows.WindowHide: Common.WindowHide,
Windows.WindowDidMove: Common.WindowDidMove,
Windows.WindowDidResize: Common.WindowDidResize,
Windows.WindowSetFocus: Common.WindowFocus,
Windows.WindowKillFocus: Common.WindowLostFocus,
Windows.WindowDPIChanged: Common.WindowDPIChanged,
},
"darwin": {
Mac.WindowDidResignKey: Common.WindowLostFocus,
Mac.WindowDidBecomeKey: Common.WindowFocus,
Mac.WindowDidMiniaturize: Common.WindowMinimise,
Mac.WindowDidDeminiaturize: Common.WindowUnMinimise,
Mac.WindowDidEnterFullScreen: Common.WindowFullscreen,
Mac.WindowDidExitFullScreen: Common.WindowUnFullscreen,
Mac.WindowMaximise: Common.WindowMaximise,
Mac.WindowUnMaximise: Common.WindowUnMaximise,
Mac.WindowDidMove: Common.WindowDidMove,
Mac.WindowDidResize: Common.WindowDidResize,
Mac.WindowDidZoom: Common.WindowMaximise,
Mac.WindowShow: Common.WindowShow,
Mac.WindowHide: Common.WindowHide,
Mac.WindowZoomIn: Common.WindowZoomIn,
Mac.WindowZoomOut: Common.WindowZoomOut,
Mac.WindowZoomReset: Common.WindowZoomReset,
Mac.WindowShouldClose: Common.WindowClosing,
},
"linux": {
Linux.WindowDeleteEvent: Common.WindowClosing,
Linux.WindowFocusIn: Common.WindowFocus,
Linux.WindowFocusOut: Common.WindowLostFocus,
Linux.WindowDidMove: Common.WindowDidMove,
Linux.WindowDidResize: Common.WindowDidResize,
Linux.WindowLoadFinished: Common.WindowShow,
},
}
func DefaultWindowEventMapping() map[WindowEventType]WindowEventType {
platform := runtime.GOOS
return defaultWindowEventMapping[platform]
}

View File

@@ -0,0 +1,875 @@
package events
type ApplicationEventType uint
type WindowEventType uint
var Common = newCommonEvents()
type commonEvents struct {
ApplicationOpenedWithFile ApplicationEventType
ApplicationStarted ApplicationEventType
ApplicationLaunchedWithUrl ApplicationEventType
ThemeChanged ApplicationEventType
SystemDidWake ApplicationEventType
SystemWillSleep ApplicationEventType
WindowClosing WindowEventType
WindowDidMove WindowEventType
WindowDidResize WindowEventType
WindowDPIChanged WindowEventType
WindowFilesDropped WindowEventType
WindowFocus WindowEventType
WindowFullscreen WindowEventType
WindowHide WindowEventType
WindowLostFocus WindowEventType
WindowMaximise WindowEventType
WindowMinimise WindowEventType
WindowToggleFrameless WindowEventType
WindowRestore WindowEventType
WindowRuntimeReady WindowEventType
WindowShow WindowEventType
WindowUnFullscreen WindowEventType
WindowUnMaximise WindowEventType
WindowUnMinimise WindowEventType
WindowZoom WindowEventType
WindowZoomIn WindowEventType
WindowZoomOut WindowEventType
WindowZoomReset WindowEventType
BatteryChanged ApplicationEventType
NetworkChanged ApplicationEventType
ScreenLocked ApplicationEventType
ScreenUnlocked ApplicationEventType
LowMemory ApplicationEventType
}
func newCommonEvents() commonEvents {
return commonEvents{
ApplicationOpenedWithFile: 1024,
ApplicationStarted: 1025,
ApplicationLaunchedWithUrl: 1026,
ThemeChanged: 1027,
SystemDidWake: 1028,
SystemWillSleep: 1029,
WindowClosing: 1030,
WindowDidMove: 1031,
WindowDidResize: 1032,
WindowDPIChanged: 1033,
WindowFilesDropped: 1034,
WindowFocus: 1035,
WindowFullscreen: 1036,
WindowHide: 1037,
WindowLostFocus: 1038,
WindowMaximise: 1039,
WindowMinimise: 1040,
WindowToggleFrameless: 1041,
WindowRestore: 1042,
WindowRuntimeReady: 1043,
WindowShow: 1044,
WindowUnFullscreen: 1045,
WindowUnMaximise: 1046,
WindowUnMinimise: 1047,
WindowZoom: 1048,
WindowZoomIn: 1049,
WindowZoomOut: 1050,
WindowZoomReset: 1051,
BatteryChanged: 1287,
NetworkChanged: 1288,
ScreenLocked: 1289,
ScreenUnlocked: 1290,
LowMemory: 1291,
}
}
var Linux = newLinuxEvents()
type linuxEvents struct {
ApplicationStartup ApplicationEventType
SystemDidWake ApplicationEventType
SystemThemeChanged ApplicationEventType
SystemWillSleep ApplicationEventType
WindowDeleteEvent WindowEventType
WindowDidMove WindowEventType
WindowDidResize WindowEventType
WindowFocusIn WindowEventType
WindowFocusOut WindowEventType
WindowLoadStarted WindowEventType
WindowLoadRedirected WindowEventType
WindowLoadCommitted WindowEventType
WindowLoadFinished WindowEventType
}
func newLinuxEvents() linuxEvents {
return linuxEvents{
ApplicationStartup: 1052,
SystemDidWake: 1053,
SystemThemeChanged: 1054,
SystemWillSleep: 1055,
WindowDeleteEvent: 1056,
WindowDidMove: 1057,
WindowDidResize: 1058,
WindowFocusIn: 1059,
WindowFocusOut: 1060,
WindowLoadStarted: 1061,
WindowLoadRedirected: 1062,
WindowLoadCommitted: 1063,
WindowLoadFinished: 1064,
}
}
var Mac = newMacEvents()
type macEvents struct {
ApplicationDidBecomeActive ApplicationEventType
ApplicationDidChangeBackingProperties ApplicationEventType
ApplicationDidChangeEffectiveAppearance ApplicationEventType
ApplicationDidChangeIcon ApplicationEventType
ApplicationDidChangeOcclusionState ApplicationEventType
ApplicationDidChangeScreenParameters ApplicationEventType
ApplicationDidChangeStatusBarFrame ApplicationEventType
ApplicationDidChangeStatusBarOrientation ApplicationEventType
ApplicationDidChangeTheme ApplicationEventType
ApplicationDidFinishLaunching ApplicationEventType
ApplicationDidHide ApplicationEventType
ApplicationDidResignActive ApplicationEventType
ApplicationDidUnhide ApplicationEventType
ApplicationDidUpdate ApplicationEventType
ApplicationDidWake ApplicationEventType
ApplicationScreensDidSleep ApplicationEventType
ApplicationScreensDidWake ApplicationEventType
ApplicationShouldHandleReopen ApplicationEventType
ApplicationWillBecomeActive ApplicationEventType
ApplicationWillFinishLaunching ApplicationEventType
ApplicationWillHide ApplicationEventType
ApplicationWillResignActive ApplicationEventType
ApplicationWillSleep ApplicationEventType
ApplicationWillTerminate ApplicationEventType
ApplicationWillUnhide ApplicationEventType
ApplicationWillUpdate ApplicationEventType
MenuDidAddItem ApplicationEventType
MenuDidBeginTracking ApplicationEventType
MenuDidClose ApplicationEventType
MenuDidDisplayItem ApplicationEventType
MenuDidEndTracking ApplicationEventType
MenuDidHighlightItem ApplicationEventType
MenuDidOpen ApplicationEventType
MenuDidPopUp ApplicationEventType
MenuDidRemoveItem ApplicationEventType
MenuDidSendAction ApplicationEventType
MenuDidSendActionToItem ApplicationEventType
MenuDidUpdate ApplicationEventType
MenuWillAddItem ApplicationEventType
MenuWillBeginTracking ApplicationEventType
MenuWillDisplayItem ApplicationEventType
MenuWillEndTracking ApplicationEventType
MenuWillHighlightItem ApplicationEventType
MenuWillOpen ApplicationEventType
MenuWillPopUp ApplicationEventType
MenuWillRemoveItem ApplicationEventType
MenuWillSendAction ApplicationEventType
MenuWillSendActionToItem ApplicationEventType
MenuWillUpdate ApplicationEventType
WebViewDidCommitNavigation WindowEventType
WebViewDidFinishNavigation WindowEventType
WebViewDidReceiveServerRedirectForProvisionalNavigation WindowEventType
WebViewDidStartProvisionalNavigation WindowEventType
WindowDidBecomeKey WindowEventType
WindowDidBecomeMain WindowEventType
WindowDidBeginSheet WindowEventType
WindowDidChangeAlpha WindowEventType
WindowDidChangeBackingLocation WindowEventType
WindowDidChangeBackingProperties WindowEventType
WindowDidChangeCollectionBehavior WindowEventType
WindowDidChangeEffectiveAppearance WindowEventType
WindowDidChangeOcclusionState WindowEventType
WindowDidChangeOrderingMode WindowEventType
WindowDidChangeScreen WindowEventType
WindowDidChangeScreenParameters WindowEventType
WindowDidChangeScreenProfile WindowEventType
WindowDidChangeScreenSpace WindowEventType
WindowDidChangeScreenSpaceProperties WindowEventType
WindowDidChangeSharingType WindowEventType
WindowDidChangeSpace WindowEventType
WindowDidChangeSpaceOrderingMode WindowEventType
WindowDidChangeTitle WindowEventType
WindowDidChangeToolbar WindowEventType
WindowDidDeminiaturize WindowEventType
WindowDidEndSheet WindowEventType
WindowDidEnterFullScreen WindowEventType
WindowDidEnterVersionBrowser WindowEventType
WindowDidExitFullScreen WindowEventType
WindowDidExitVersionBrowser WindowEventType
WindowDidExpose WindowEventType
WindowDidFocus WindowEventType
WindowDidMiniaturize WindowEventType
WindowDidMove WindowEventType
WindowDidOrderOffScreen WindowEventType
WindowDidOrderOnScreen WindowEventType
WindowDidResignKey WindowEventType
WindowDidResignMain WindowEventType
WindowDidResize WindowEventType
WindowDidUpdate WindowEventType
WindowDidUpdateAlpha WindowEventType
WindowDidUpdateCollectionBehavior WindowEventType
WindowDidUpdateCollectionProperties WindowEventType
WindowDidUpdateShadow WindowEventType
WindowDidUpdateTitle WindowEventType
WindowDidUpdateToolbar WindowEventType
WindowDidZoom WindowEventType
WindowFileDraggingEntered WindowEventType
WindowFileDraggingExited WindowEventType
WindowFileDraggingPerformed WindowEventType
WindowHide WindowEventType
WindowMaximise WindowEventType
WindowUnMaximise WindowEventType
WindowMinimise WindowEventType
WindowUnMinimise WindowEventType
WindowShouldClose WindowEventType
WindowShow WindowEventType
WindowWillBecomeKey WindowEventType
WindowWillBecomeMain WindowEventType
WindowWillBeginSheet WindowEventType
WindowWillChangeOrderingMode WindowEventType
WindowWillClose WindowEventType
WindowWillDeminiaturize WindowEventType
WindowWillEnterFullScreen WindowEventType
WindowWillEnterVersionBrowser WindowEventType
WindowWillExitFullScreen WindowEventType
WindowWillExitVersionBrowser WindowEventType
WindowWillFocus WindowEventType
WindowWillMiniaturize WindowEventType
WindowWillMove WindowEventType
WindowWillOrderOffScreen WindowEventType
WindowWillOrderOnScreen WindowEventType
WindowWillResignMain WindowEventType
WindowWillResize WindowEventType
WindowWillUnfocus WindowEventType
WindowWillUpdate WindowEventType
WindowWillUpdateAlpha WindowEventType
WindowWillUpdateCollectionBehavior WindowEventType
WindowWillUpdateCollectionProperties WindowEventType
WindowWillUpdateShadow WindowEventType
WindowWillUpdateTitle WindowEventType
WindowWillUpdateToolbar WindowEventType
WindowWillUpdateVisibility WindowEventType
WindowWillUseStandardFrame WindowEventType
WindowZoomIn WindowEventType
WindowZoomOut WindowEventType
WindowZoomReset WindowEventType
WebViewWebContentProcessDidTerminate WindowEventType
}
func newMacEvents() macEvents {
return macEvents{
ApplicationDidBecomeActive: 1065,
ApplicationDidChangeBackingProperties: 1066,
ApplicationDidChangeEffectiveAppearance: 1067,
ApplicationDidChangeIcon: 1068,
ApplicationDidChangeOcclusionState: 1069,
ApplicationDidChangeScreenParameters: 1070,
ApplicationDidChangeStatusBarFrame: 1071,
ApplicationDidChangeStatusBarOrientation: 1072,
ApplicationDidChangeTheme: 1073,
ApplicationDidFinishLaunching: 1074,
ApplicationDidHide: 1075,
ApplicationDidResignActive: 1076,
ApplicationDidUnhide: 1077,
ApplicationDidUpdate: 1078,
ApplicationDidWake: 1079,
ApplicationScreensDidSleep: 1080,
ApplicationScreensDidWake: 1081,
ApplicationShouldHandleReopen: 1082,
ApplicationWillBecomeActive: 1083,
ApplicationWillFinishLaunching: 1084,
ApplicationWillHide: 1085,
ApplicationWillResignActive: 1086,
ApplicationWillSleep: 1087,
ApplicationWillTerminate: 1088,
ApplicationWillUnhide: 1089,
ApplicationWillUpdate: 1090,
MenuDidAddItem: 1091,
MenuDidBeginTracking: 1092,
MenuDidClose: 1093,
MenuDidDisplayItem: 1094,
MenuDidEndTracking: 1095,
MenuDidHighlightItem: 1096,
MenuDidOpen: 1097,
MenuDidPopUp: 1098,
MenuDidRemoveItem: 1099,
MenuDidSendAction: 1100,
MenuDidSendActionToItem: 1101,
MenuDidUpdate: 1102,
MenuWillAddItem: 1103,
MenuWillBeginTracking: 1104,
MenuWillDisplayItem: 1105,
MenuWillEndTracking: 1106,
MenuWillHighlightItem: 1107,
MenuWillOpen: 1108,
MenuWillPopUp: 1109,
MenuWillRemoveItem: 1110,
MenuWillSendAction: 1111,
MenuWillSendActionToItem: 1112,
MenuWillUpdate: 1113,
WebViewDidCommitNavigation: 1114,
WebViewDidFinishNavigation: 1115,
WebViewDidReceiveServerRedirectForProvisionalNavigation: 1116,
WebViewDidStartProvisionalNavigation: 1117,
WindowDidBecomeKey: 1118,
WindowDidBecomeMain: 1119,
WindowDidBeginSheet: 1120,
WindowDidChangeAlpha: 1121,
WindowDidChangeBackingLocation: 1122,
WindowDidChangeBackingProperties: 1123,
WindowDidChangeCollectionBehavior: 1124,
WindowDidChangeEffectiveAppearance: 1125,
WindowDidChangeOcclusionState: 1126,
WindowDidChangeOrderingMode: 1127,
WindowDidChangeScreen: 1128,
WindowDidChangeScreenParameters: 1129,
WindowDidChangeScreenProfile: 1130,
WindowDidChangeScreenSpace: 1131,
WindowDidChangeScreenSpaceProperties: 1132,
WindowDidChangeSharingType: 1133,
WindowDidChangeSpace: 1134,
WindowDidChangeSpaceOrderingMode: 1135,
WindowDidChangeTitle: 1136,
WindowDidChangeToolbar: 1137,
WindowDidDeminiaturize: 1138,
WindowDidEndSheet: 1139,
WindowDidEnterFullScreen: 1140,
WindowDidEnterVersionBrowser: 1141,
WindowDidExitFullScreen: 1142,
WindowDidExitVersionBrowser: 1143,
WindowDidExpose: 1144,
WindowDidFocus: 1145,
WindowDidMiniaturize: 1146,
WindowDidMove: 1147,
WindowDidOrderOffScreen: 1148,
WindowDidOrderOnScreen: 1149,
WindowDidResignKey: 1150,
WindowDidResignMain: 1151,
WindowDidResize: 1152,
WindowDidUpdate: 1153,
WindowDidUpdateAlpha: 1154,
WindowDidUpdateCollectionBehavior: 1155,
WindowDidUpdateCollectionProperties: 1156,
WindowDidUpdateShadow: 1157,
WindowDidUpdateTitle: 1158,
WindowDidUpdateToolbar: 1159,
WindowDidZoom: 1160,
WindowFileDraggingEntered: 1161,
WindowFileDraggingExited: 1162,
WindowFileDraggingPerformed: 1163,
WindowHide: 1164,
WindowMaximise: 1165,
WindowUnMaximise: 1166,
WindowMinimise: 1167,
WindowUnMinimise: 1168,
WindowShouldClose: 1169,
WindowShow: 1170,
WindowWillBecomeKey: 1171,
WindowWillBecomeMain: 1172,
WindowWillBeginSheet: 1173,
WindowWillChangeOrderingMode: 1174,
WindowWillClose: 1175,
WindowWillDeminiaturize: 1176,
WindowWillEnterFullScreen: 1177,
WindowWillEnterVersionBrowser: 1178,
WindowWillExitFullScreen: 1179,
WindowWillExitVersionBrowser: 1180,
WindowWillFocus: 1181,
WindowWillMiniaturize: 1182,
WindowWillMove: 1183,
WindowWillOrderOffScreen: 1184,
WindowWillOrderOnScreen: 1185,
WindowWillResignMain: 1186,
WindowWillResize: 1187,
WindowWillUnfocus: 1188,
WindowWillUpdate: 1189,
WindowWillUpdateAlpha: 1190,
WindowWillUpdateCollectionBehavior: 1191,
WindowWillUpdateCollectionProperties: 1192,
WindowWillUpdateShadow: 1193,
WindowWillUpdateTitle: 1194,
WindowWillUpdateToolbar: 1195,
WindowWillUpdateVisibility: 1196,
WindowWillUseStandardFrame: 1197,
WindowZoomIn: 1198,
WindowZoomOut: 1199,
WindowZoomReset: 1200,
WebViewWebContentProcessDidTerminate: 1267,
}
}
var Windows = newWindowsEvents()
type windowsEvents struct {
APMPowerSettingChange ApplicationEventType
APMPowerStatusChange ApplicationEventType
APMResumeAutomatic ApplicationEventType
APMResumeSuspend ApplicationEventType
APMSuspend ApplicationEventType
ApplicationStarted ApplicationEventType
SystemThemeChanged ApplicationEventType
WebViewNavigationCompleted WindowEventType
WindowActive WindowEventType
WindowBackgroundErase WindowEventType
WindowClickActive WindowEventType
WindowClosing WindowEventType
WindowDidMove WindowEventType
WindowDidResize WindowEventType
WindowDPIChanged WindowEventType
WindowDragDrop WindowEventType
WindowDragEnter WindowEventType
WindowDragLeave WindowEventType
WindowDragOver WindowEventType
WindowEndMove WindowEventType
WindowEndResize WindowEventType
WindowFullscreen WindowEventType
WindowHide WindowEventType
WindowInactive WindowEventType
WindowKeyDown WindowEventType
WindowKeyUp WindowEventType
WindowKillFocus WindowEventType
WindowNonClientHit WindowEventType
WindowNonClientMouseDown WindowEventType
WindowNonClientMouseLeave WindowEventType
WindowNonClientMouseMove WindowEventType
WindowNonClientMouseUp WindowEventType
WindowPaint WindowEventType
WindowRestore WindowEventType
WindowSetFocus WindowEventType
WindowShow WindowEventType
WindowStartMove WindowEventType
WindowStartResize WindowEventType
WindowUnFullscreen WindowEventType
WindowZOrderChanged WindowEventType
WindowMinimise WindowEventType
WindowUnMinimise WindowEventType
WindowMaximise WindowEventType
WindowUnMaximise WindowEventType
}
func newWindowsEvents() windowsEvents {
return windowsEvents{
APMPowerSettingChange: 1201,
APMPowerStatusChange: 1202,
APMResumeAutomatic: 1203,
APMResumeSuspend: 1204,
APMSuspend: 1205,
ApplicationStarted: 1206,
SystemThemeChanged: 1207,
WebViewNavigationCompleted: 1208,
WindowActive: 1209,
WindowBackgroundErase: 1210,
WindowClickActive: 1211,
WindowClosing: 1212,
WindowDidMove: 1213,
WindowDidResize: 1214,
WindowDPIChanged: 1215,
WindowDragDrop: 1216,
WindowDragEnter: 1217,
WindowDragLeave: 1218,
WindowDragOver: 1219,
WindowEndMove: 1220,
WindowEndResize: 1221,
WindowFullscreen: 1222,
WindowHide: 1223,
WindowInactive: 1224,
WindowKeyDown: 1225,
WindowKeyUp: 1226,
WindowKillFocus: 1227,
WindowNonClientHit: 1228,
WindowNonClientMouseDown: 1229,
WindowNonClientMouseLeave: 1230,
WindowNonClientMouseMove: 1231,
WindowNonClientMouseUp: 1232,
WindowPaint: 1233,
WindowRestore: 1234,
WindowSetFocus: 1235,
WindowShow: 1236,
WindowStartMove: 1237,
WindowStartResize: 1238,
WindowUnFullscreen: 1239,
WindowZOrderChanged: 1240,
WindowMinimise: 1241,
WindowUnMinimise: 1242,
WindowMaximise: 1243,
WindowUnMaximise: 1244,
}
}
var IOS = newIOSEvents()
type iosEvents struct {
ApplicationDidBecomeActive ApplicationEventType
ApplicationDidEnterBackground ApplicationEventType
ApplicationDidFinishLaunching ApplicationEventType
ApplicationDidReceiveMemoryWarning ApplicationEventType
ApplicationWillEnterForeground ApplicationEventType
ApplicationWillResignActive ApplicationEventType
ApplicationWillTerminate ApplicationEventType
WindowDidLoad WindowEventType
WindowWillAppear WindowEventType
WindowDidAppear WindowEventType
WindowWillDisappear WindowEventType
WindowDidDisappear WindowEventType
WindowSafeAreaInsetsChanged WindowEventType
WindowOrientationChanged WindowEventType
WindowTouchBegan WindowEventType
WindowTouchMoved WindowEventType
WindowTouchEnded WindowEventType
WindowTouchCancelled WindowEventType
WebViewDidStartNavigation WindowEventType
WebViewDidFinishNavigation WindowEventType
WebViewDidFailNavigation WindowEventType
WebViewDecidePolicyForNavigationAction WindowEventType
BatteryChanged ApplicationEventType
NetworkChanged ApplicationEventType
ThemeChanged ApplicationEventType
ScreenLocked ApplicationEventType
ScreenUnlocked ApplicationEventType
}
func newIOSEvents() iosEvents {
return iosEvents{
ApplicationDidBecomeActive: 1245,
ApplicationDidEnterBackground: 1246,
ApplicationDidFinishLaunching: 1247,
ApplicationDidReceiveMemoryWarning: 1248,
ApplicationWillEnterForeground: 1249,
ApplicationWillResignActive: 1250,
ApplicationWillTerminate: 1251,
WindowDidLoad: 1252,
WindowWillAppear: 1253,
WindowDidAppear: 1254,
WindowWillDisappear: 1255,
WindowDidDisappear: 1256,
WindowSafeAreaInsetsChanged: 1257,
WindowOrientationChanged: 1258,
WindowTouchBegan: 1259,
WindowTouchMoved: 1260,
WindowTouchEnded: 1261,
WindowTouchCancelled: 1262,
WebViewDidStartNavigation: 1263,
WebViewDidFinishNavigation: 1264,
WebViewDidFailNavigation: 1265,
WebViewDecidePolicyForNavigationAction: 1266,
BatteryChanged: 1277,
NetworkChanged: 1278,
ThemeChanged: 1279,
ScreenLocked: 1280,
ScreenUnlocked: 1281,
}
}
var Android = newAndroidEvents()
type androidEvents struct {
ActivityCreated ApplicationEventType
ActivityStarted ApplicationEventType
ActivityResumed ApplicationEventType
ActivityPaused ApplicationEventType
ActivityStopped ApplicationEventType
ActivityDestroyed ApplicationEventType
ApplicationLowMemory ApplicationEventType
WebViewPageStarted WindowEventType
WebViewPageFinished WindowEventType
BatteryChanged ApplicationEventType
NetworkChanged ApplicationEventType
ThemeChanged ApplicationEventType
ScreenLocked ApplicationEventType
ScreenUnlocked ApplicationEventType
}
func newAndroidEvents() androidEvents {
return androidEvents{
ActivityCreated: 1268,
ActivityStarted: 1269,
ActivityResumed: 1270,
ActivityPaused: 1271,
ActivityStopped: 1272,
ActivityDestroyed: 1273,
ApplicationLowMemory: 1274,
WebViewPageStarted: 1275,
WebViewPageFinished: 1276,
BatteryChanged: 1282,
NetworkChanged: 1283,
ThemeChanged: 1284,
ScreenLocked: 1285,
ScreenUnlocked: 1286,
}
}
func JSEvent(event uint) string {
return eventToJS[event]
}
var eventToJS = map[uint]string{
1024: "common:ApplicationOpenedWithFile",
1025: "common:ApplicationStarted",
1026: "common:ApplicationLaunchedWithUrl",
1027: "common:ThemeChanged",
1028: "common:SystemDidWake",
1029: "common:SystemWillSleep",
1030: "common:WindowClosing",
1031: "common:WindowDidMove",
1032: "common:WindowDidResize",
1033: "common:WindowDPIChanged",
1034: "common:WindowFilesDropped",
1035: "common:WindowFocus",
1036: "common:WindowFullscreen",
1037: "common:WindowHide",
1038: "common:WindowLostFocus",
1039: "common:WindowMaximise",
1040: "common:WindowMinimise",
1041: "common:WindowToggleFrameless",
1042: "common:WindowRestore",
1043: "common:WindowRuntimeReady",
1044: "common:WindowShow",
1045: "common:WindowUnFullscreen",
1046: "common:WindowUnMaximise",
1047: "common:WindowUnMinimise",
1048: "common:WindowZoom",
1049: "common:WindowZoomIn",
1050: "common:WindowZoomOut",
1051: "common:WindowZoomReset",
1052: "linux:ApplicationStartup",
1053: "linux:SystemDidWake",
1054: "linux:SystemThemeChanged",
1055: "linux:SystemWillSleep",
1056: "linux:WindowDeleteEvent",
1057: "linux:WindowDidMove",
1058: "linux:WindowDidResize",
1059: "linux:WindowFocusIn",
1060: "linux:WindowFocusOut",
1061: "linux:WindowLoadStarted",
1062: "linux:WindowLoadRedirected",
1063: "linux:WindowLoadCommitted",
1064: "linux:WindowLoadFinished",
1065: "mac:ApplicationDidBecomeActive",
1066: "mac:ApplicationDidChangeBackingProperties",
1067: "mac:ApplicationDidChangeEffectiveAppearance",
1068: "mac:ApplicationDidChangeIcon",
1069: "mac:ApplicationDidChangeOcclusionState",
1070: "mac:ApplicationDidChangeScreenParameters",
1071: "mac:ApplicationDidChangeStatusBarFrame",
1072: "mac:ApplicationDidChangeStatusBarOrientation",
1073: "mac:ApplicationDidChangeTheme",
1074: "mac:ApplicationDidFinishLaunching",
1075: "mac:ApplicationDidHide",
1076: "mac:ApplicationDidResignActive",
1077: "mac:ApplicationDidUnhide",
1078: "mac:ApplicationDidUpdate",
1079: "mac:ApplicationDidWake",
1080: "mac:ApplicationScreensDidSleep",
1081: "mac:ApplicationScreensDidWake",
1082: "mac:ApplicationShouldHandleReopen",
1083: "mac:ApplicationWillBecomeActive",
1084: "mac:ApplicationWillFinishLaunching",
1085: "mac:ApplicationWillHide",
1086: "mac:ApplicationWillResignActive",
1087: "mac:ApplicationWillSleep",
1088: "mac:ApplicationWillTerminate",
1089: "mac:ApplicationWillUnhide",
1090: "mac:ApplicationWillUpdate",
1091: "mac:MenuDidAddItem",
1092: "mac:MenuDidBeginTracking",
1093: "mac:MenuDidClose",
1094: "mac:MenuDidDisplayItem",
1095: "mac:MenuDidEndTracking",
1096: "mac:MenuDidHighlightItem",
1097: "mac:MenuDidOpen",
1098: "mac:MenuDidPopUp",
1099: "mac:MenuDidRemoveItem",
1100: "mac:MenuDidSendAction",
1101: "mac:MenuDidSendActionToItem",
1102: "mac:MenuDidUpdate",
1103: "mac:MenuWillAddItem",
1104: "mac:MenuWillBeginTracking",
1105: "mac:MenuWillDisplayItem",
1106: "mac:MenuWillEndTracking",
1107: "mac:MenuWillHighlightItem",
1108: "mac:MenuWillOpen",
1109: "mac:MenuWillPopUp",
1110: "mac:MenuWillRemoveItem",
1111: "mac:MenuWillSendAction",
1112: "mac:MenuWillSendActionToItem",
1113: "mac:MenuWillUpdate",
1114: "mac:WebViewDidCommitNavigation",
1115: "mac:WebViewDidFinishNavigation",
1116: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation",
1117: "mac:WebViewDidStartProvisionalNavigation",
1118: "mac:WindowDidBecomeKey",
1119: "mac:WindowDidBecomeMain",
1120: "mac:WindowDidBeginSheet",
1121: "mac:WindowDidChangeAlpha",
1122: "mac:WindowDidChangeBackingLocation",
1123: "mac:WindowDidChangeBackingProperties",
1124: "mac:WindowDidChangeCollectionBehavior",
1125: "mac:WindowDidChangeEffectiveAppearance",
1126: "mac:WindowDidChangeOcclusionState",
1127: "mac:WindowDidChangeOrderingMode",
1128: "mac:WindowDidChangeScreen",
1129: "mac:WindowDidChangeScreenParameters",
1130: "mac:WindowDidChangeScreenProfile",
1131: "mac:WindowDidChangeScreenSpace",
1132: "mac:WindowDidChangeScreenSpaceProperties",
1133: "mac:WindowDidChangeSharingType",
1134: "mac:WindowDidChangeSpace",
1135: "mac:WindowDidChangeSpaceOrderingMode",
1136: "mac:WindowDidChangeTitle",
1137: "mac:WindowDidChangeToolbar",
1138: "mac:WindowDidDeminiaturize",
1139: "mac:WindowDidEndSheet",
1140: "mac:WindowDidEnterFullScreen",
1141: "mac:WindowDidEnterVersionBrowser",
1142: "mac:WindowDidExitFullScreen",
1143: "mac:WindowDidExitVersionBrowser",
1144: "mac:WindowDidExpose",
1145: "mac:WindowDidFocus",
1146: "mac:WindowDidMiniaturize",
1147: "mac:WindowDidMove",
1148: "mac:WindowDidOrderOffScreen",
1149: "mac:WindowDidOrderOnScreen",
1150: "mac:WindowDidResignKey",
1151: "mac:WindowDidResignMain",
1152: "mac:WindowDidResize",
1153: "mac:WindowDidUpdate",
1154: "mac:WindowDidUpdateAlpha",
1155: "mac:WindowDidUpdateCollectionBehavior",
1156: "mac:WindowDidUpdateCollectionProperties",
1157: "mac:WindowDidUpdateShadow",
1158: "mac:WindowDidUpdateTitle",
1159: "mac:WindowDidUpdateToolbar",
1160: "mac:WindowDidZoom",
1161: "mac:WindowFileDraggingEntered",
1162: "mac:WindowFileDraggingExited",
1163: "mac:WindowFileDraggingPerformed",
1164: "mac:WindowHide",
1165: "mac:WindowMaximise",
1166: "mac:WindowUnMaximise",
1167: "mac:WindowMinimise",
1168: "mac:WindowUnMinimise",
1169: "mac:WindowShouldClose",
1170: "mac:WindowShow",
1171: "mac:WindowWillBecomeKey",
1172: "mac:WindowWillBecomeMain",
1173: "mac:WindowWillBeginSheet",
1174: "mac:WindowWillChangeOrderingMode",
1175: "mac:WindowWillClose",
1176: "mac:WindowWillDeminiaturize",
1177: "mac:WindowWillEnterFullScreen",
1178: "mac:WindowWillEnterVersionBrowser",
1179: "mac:WindowWillExitFullScreen",
1180: "mac:WindowWillExitVersionBrowser",
1181: "mac:WindowWillFocus",
1182: "mac:WindowWillMiniaturize",
1183: "mac:WindowWillMove",
1184: "mac:WindowWillOrderOffScreen",
1185: "mac:WindowWillOrderOnScreen",
1186: "mac:WindowWillResignMain",
1187: "mac:WindowWillResize",
1188: "mac:WindowWillUnfocus",
1189: "mac:WindowWillUpdate",
1190: "mac:WindowWillUpdateAlpha",
1191: "mac:WindowWillUpdateCollectionBehavior",
1192: "mac:WindowWillUpdateCollectionProperties",
1193: "mac:WindowWillUpdateShadow",
1194: "mac:WindowWillUpdateTitle",
1195: "mac:WindowWillUpdateToolbar",
1196: "mac:WindowWillUpdateVisibility",
1197: "mac:WindowWillUseStandardFrame",
1198: "mac:WindowZoomIn",
1199: "mac:WindowZoomOut",
1200: "mac:WindowZoomReset",
1201: "windows:APMPowerSettingChange",
1202: "windows:APMPowerStatusChange",
1203: "windows:APMResumeAutomatic",
1204: "windows:APMResumeSuspend",
1205: "windows:APMSuspend",
1206: "windows:ApplicationStarted",
1207: "windows:SystemThemeChanged",
1208: "windows:WebViewNavigationCompleted",
1209: "windows:WindowActive",
1210: "windows:WindowBackgroundErase",
1211: "windows:WindowClickActive",
1212: "windows:WindowClosing",
1213: "windows:WindowDidMove",
1214: "windows:WindowDidResize",
1215: "windows:WindowDPIChanged",
1216: "windows:WindowDragDrop",
1217: "windows:WindowDragEnter",
1218: "windows:WindowDragLeave",
1219: "windows:WindowDragOver",
1220: "windows:WindowEndMove",
1221: "windows:WindowEndResize",
1222: "windows:WindowFullscreen",
1223: "windows:WindowHide",
1224: "windows:WindowInactive",
1225: "windows:WindowKeyDown",
1226: "windows:WindowKeyUp",
1227: "windows:WindowKillFocus",
1228: "windows:WindowNonClientHit",
1229: "windows:WindowNonClientMouseDown",
1230: "windows:WindowNonClientMouseLeave",
1231: "windows:WindowNonClientMouseMove",
1232: "windows:WindowNonClientMouseUp",
1233: "windows:WindowPaint",
1234: "windows:WindowRestore",
1235: "windows:WindowSetFocus",
1236: "windows:WindowShow",
1237: "windows:WindowStartMove",
1238: "windows:WindowStartResize",
1239: "windows:WindowUnFullscreen",
1240: "windows:WindowZOrderChanged",
1241: "windows:WindowMinimise",
1242: "windows:WindowUnMinimise",
1243: "windows:WindowMaximise",
1244: "windows:WindowUnMaximise",
1245: "ios:ApplicationDidBecomeActive",
1246: "ios:ApplicationDidEnterBackground",
1247: "ios:ApplicationDidFinishLaunching",
1248: "ios:ApplicationDidReceiveMemoryWarning",
1249: "ios:ApplicationWillEnterForeground",
1250: "ios:ApplicationWillResignActive",
1251: "ios:ApplicationWillTerminate",
1252: "ios:WindowDidLoad",
1253: "ios:WindowWillAppear",
1254: "ios:WindowDidAppear",
1255: "ios:WindowWillDisappear",
1256: "ios:WindowDidDisappear",
1257: "ios:WindowSafeAreaInsetsChanged",
1258: "ios:WindowOrientationChanged",
1259: "ios:WindowTouchBegan",
1260: "ios:WindowTouchMoved",
1261: "ios:WindowTouchEnded",
1262: "ios:WindowTouchCancelled",
1263: "ios:WebViewDidStartNavigation",
1264: "ios:WebViewDidFinishNavigation",
1265: "ios:WebViewDidFailNavigation",
1266: "ios:WebViewDecidePolicyForNavigationAction",
1267: "mac:WebViewWebContentProcessDidTerminate",
1268: "android:ActivityCreated",
1269: "android:ActivityStarted",
1270: "android:ActivityResumed",
1271: "android:ActivityPaused",
1272: "android:ActivityStopped",
1273: "android:ActivityDestroyed",
1274: "android:ApplicationLowMemory",
1275: "android:WebViewPageStarted",
1276: "android:WebViewPageFinished",
1277: "ios:BatteryChanged",
1278: "ios:NetworkChanged",
1279: "ios:ThemeChanged",
1280: "ios:ScreenLocked",
1281: "ios:ScreenUnlocked",
1282: "android:BatteryChanged",
1283: "android:NetworkChanged",
1284: "android:ThemeChanged",
1285: "android:ScreenLocked",
1286: "android:ScreenUnlocked",
1287: "common:BatteryChanged",
1288: "common:NetworkChanged",
1289: "common:ScreenLocked",
1290: "common:ScreenUnlocked",
1291: "common:LowMemory",
}

138
vendor/github.com/wailsapp/wails/v3/pkg/events/events.h generated vendored Normal file
View File

@@ -0,0 +1,138 @@
//go:build darwin
#ifndef _events_h
#define _events_h
extern void processApplicationEvent(unsigned int, void* data);
extern void processWindowEvent(unsigned int, unsigned int);
#define EventApplicationDidBecomeActive 1025
#define EventApplicationDidChangeBackingProperties 1026
#define EventApplicationDidChangeEffectiveAppearance 1027
#define EventApplicationDidChangeIcon 1028
#define EventApplicationDidChangeOcclusionState 1029
#define EventApplicationDidChangeScreenParameters 1030
#define EventApplicationDidChangeStatusBarFrame 1031
#define EventApplicationDidChangeStatusBarOrientation 1032
#define EventApplicationDidFinishLaunching 1033
#define EventApplicationDidHide 1034
#define EventApplicationDidResignActiveNotification 1035
#define EventApplicationDidUnhide 1036
#define EventApplicationDidUpdate 1037
#define EventApplicationWillBecomeActive 1038
#define EventApplicationWillFinishLaunching 1039
#define EventApplicationWillHide 1040
#define EventApplicationWillResignActive 1041
#define EventApplicationWillTerminate 1042
#define EventApplicationWillUnhide 1043
#define EventApplicationWillUpdate 1044
#define EventApplicationTerminate 1045
#define EventApplicationDidChangeTheme 1046
#define EventApplicationShouldHandleReopen 1047
#define EventWindowDidBecomeKey 1048
#define EventWindowDidBecomeMain 1049
#define EventWindowDidBeginSheet 1050
#define EventWindowDidChangeAlpha 1051
#define EventWindowDidChangeBackingLocation 1052
#define EventWindowDidChangeBackingProperties 1053
#define EventWindowDidChangeCollectionBehavior 1054
#define EventWindowDidChangeEffectiveAppearance 1055
#define EventWindowDidChangeOcclusionState 1056
#define EventWindowDidChangeOrderingMode 1057
#define EventWindowDidChangeScreen 1058
#define EventWindowDidChangeScreenParameters 1059
#define EventWindowDidChangeScreenProfile 1060
#define EventWindowDidChangeScreenSpace 1061
#define EventWindowDidChangeScreenSpaceProperties 1062
#define EventWindowDidChangeSharingType 1063
#define EventWindowDidChangeSpace 1064
#define EventWindowDidChangeSpaceOrderingMode 1065
#define EventWindowDidChangeTitle 1066
#define EventWindowDidChangeToolbar 1067
#define EventWindowDidChangeVisibility 1068
#define EventWindowDidDeminiaturize 1069
#define EventWindowDidEndSheet 1070
#define EventWindowDidEnterFullScreen 1071
#define EventWindowDidEnterVersionBrowser 1072
#define EventWindowDidExitFullScreen 1073
#define EventWindowDidExitVersionBrowser 1074
#define EventWindowDidExpose 1075
#define EventWindowDidFocus 1076
#define EventWindowDidMiniaturize 1077
#define EventWindowDidMove 1078
#define EventWindowDidOrderOffScreen 1079
#define EventWindowDidOrderOnScreen 1080
#define EventWindowDidResignKey 1081
#define EventWindowDidResignMain 1082
#define EventWindowDidResize 1083
#define EventWindowDidUpdate 1084
#define EventWindowDidUpdateAlpha 1085
#define EventWindowDidUpdateCollectionBehavior 1086
#define EventWindowDidUpdateCollectionProperties 1087
#define EventWindowDidUpdateShadow 1088
#define EventWindowDidUpdateTitle 1089
#define EventWindowDidUpdateToolbar 1090
#define EventWindowDidUpdateVisibility 1091
#define EventWindowShouldClose 1092
#define EventWindowWillBecomeKey 1093
#define EventWindowWillBecomeMain 1094
#define EventWindowWillBeginSheet 1095
#define EventWindowWillChangeOrderingMode 1096
#define EventWindowWillClose 1097
#define EventWindowWillDeminiaturize 1098
#define EventWindowWillEnterFullScreen 1099
#define EventWindowWillEnterVersionBrowser 1100
#define EventWindowWillExitFullScreen 1101
#define EventWindowWillExitVersionBrowser 1102
#define EventWindowWillFocus 1103
#define EventWindowWillMiniaturize 1104
#define EventWindowWillMove 1105
#define EventWindowWillOrderOffScreen 1106
#define EventWindowWillOrderOnScreen 1107
#define EventWindowWillResignMain 1108
#define EventWindowWillResize 1109
#define EventWindowWillUnfocus 1110
#define EventWindowWillUpdate 1111
#define EventWindowWillUpdateAlpha 1112
#define EventWindowWillUpdateCollectionBehavior 1113
#define EventWindowWillUpdateCollectionProperties 1114
#define EventWindowWillUpdateShadow 1115
#define EventWindowWillUpdateTitle 1116
#define EventWindowWillUpdateToolbar 1117
#define EventWindowWillUpdateVisibility 1118
#define EventWindowWillUseStandardFrame 1119
#define EventMenuWillOpen 1120
#define EventMenuDidOpen 1121
#define EventMenuDidClose 1122
#define EventMenuWillSendAction 1123
#define EventMenuDidSendAction 1124
#define EventMenuWillHighlightItem 1125
#define EventMenuDidHighlightItem 1126
#define EventMenuWillDisplayItem 1127
#define EventMenuDidDisplayItem 1128
#define EventMenuWillAddItem 1129
#define EventMenuDidAddItem 1130
#define EventMenuWillRemoveItem 1131
#define EventMenuDidRemoveItem 1132
#define EventMenuWillBeginTracking 1133
#define EventMenuDidBeginTracking 1134
#define EventMenuWillEndTracking 1135
#define EventMenuDidEndTracking 1136
#define EventMenuWillUpdate 1137
#define EventMenuDidUpdate 1138
#define EventMenuWillPopUp 1139
#define EventMenuDidPopUp 1140
#define EventMenuWillSendActionToItem 1141
#define EventMenuDidSendActionToItem 1142
#define EventWebViewDidStartProvisionalNavigation 1143
#define EventWebViewDidReceiveServerRedirectForProvisionalNavigation 1144
#define EventWebViewDidFinishNavigation 1145
#define EventWebViewDidCommitNavigation 1146
#define EventWindowFileDraggingEntered 1147
#define EventWindowFileDraggingPerformed 1148
#define EventWindowFileDraggingExited 1149
#define MAX_EVENTS 1150
#endif

View File

@@ -0,0 +1,268 @@
common:ApplicationOpenedWithFile
common:ApplicationStarted
common:ApplicationLaunchedWithUrl
common:ThemeChanged
common:SystemDidWake
common:SystemWillSleep
common:WindowClosing
common:WindowDidMove
common:WindowDidResize
common:WindowDPIChanged
common:WindowFilesDropped
common:WindowFocus
common:WindowFullscreen
common:WindowHide
common:WindowLostFocus
common:WindowMaximise
common:WindowMinimise
common:WindowToggleFrameless
common:WindowRestore
common:WindowRuntimeReady
common:WindowShow
common:WindowUnFullscreen
common:WindowUnMaximise
common:WindowUnMinimise
common:WindowZoom
common:WindowZoomIn
common:WindowZoomOut
common:WindowZoomReset
linux:ApplicationStartup
linux:SystemDidWake!
linux:SystemThemeChanged
linux:SystemWillSleep!
linux:WindowDeleteEvent
linux:WindowDidMove
linux:WindowDidResize
linux:WindowFocusIn
linux:WindowFocusOut
linux:WindowLoadStarted
linux:WindowLoadRedirected
linux:WindowLoadCommitted
linux:WindowLoadFinished
mac:ApplicationDidBecomeActive
mac:ApplicationDidChangeBackingProperties
mac:ApplicationDidChangeEffectiveAppearance
mac:ApplicationDidChangeIcon
mac:ApplicationDidChangeOcclusionState
mac:ApplicationDidChangeScreenParameters
mac:ApplicationDidChangeStatusBarFrame
mac:ApplicationDidChangeStatusBarOrientation
mac:ApplicationDidChangeTheme!
mac:ApplicationDidFinishLaunching
mac:ApplicationDidHide
mac:ApplicationDidResignActive
mac:ApplicationDidUnhide
mac:ApplicationDidUpdate
mac:ApplicationDidWake!
mac:ApplicationScreensDidSleep!
mac:ApplicationScreensDidWake!
mac:ApplicationShouldHandleReopen!
mac:ApplicationWillBecomeActive
mac:ApplicationWillFinishLaunching
mac:ApplicationWillHide
mac:ApplicationWillResignActive
mac:ApplicationWillSleep!
mac:ApplicationWillTerminate
mac:ApplicationWillUnhide
mac:ApplicationWillUpdate
mac:MenuDidAddItem
mac:MenuDidBeginTracking
mac:MenuDidClose
mac:MenuDidDisplayItem
mac:MenuDidEndTracking
mac:MenuDidHighlightItem
mac:MenuDidOpen
mac:MenuDidPopUp
mac:MenuDidRemoveItem
mac:MenuDidSendAction
mac:MenuDidSendActionToItem
mac:MenuDidUpdate
mac:MenuWillAddItem
mac:MenuWillBeginTracking
mac:MenuWillDisplayItem
mac:MenuWillEndTracking
mac:MenuWillHighlightItem
mac:MenuWillOpen
mac:MenuWillPopUp
mac:MenuWillRemoveItem
mac:MenuWillSendAction
mac:MenuWillSendActionToItem
mac:MenuWillUpdate
mac:WebViewDidCommitNavigation
mac:WebViewDidFinishNavigation
mac:WebViewDidReceiveServerRedirectForProvisionalNavigation
mac:WebViewDidStartProvisionalNavigation
mac:WindowDidBecomeKey
mac:WindowDidBecomeMain
mac:WindowDidBeginSheet
mac:WindowDidChangeAlpha
mac:WindowDidChangeBackingLocation
mac:WindowDidChangeBackingProperties
mac:WindowDidChangeCollectionBehavior
mac:WindowDidChangeEffectiveAppearance
mac:WindowDidChangeOcclusionState
mac:WindowDidChangeOrderingMode
mac:WindowDidChangeScreen
mac:WindowDidChangeScreenParameters
mac:WindowDidChangeScreenProfile
mac:WindowDidChangeScreenSpace
mac:WindowDidChangeScreenSpaceProperties
mac:WindowDidChangeSharingType
mac:WindowDidChangeSpace
mac:WindowDidChangeSpaceOrderingMode
mac:WindowDidChangeTitle
mac:WindowDidChangeToolbar
mac:WindowDidDeminiaturize
mac:WindowDidEndSheet
mac:WindowDidEnterFullScreen
mac:WindowDidEnterVersionBrowser
mac:WindowDidExitFullScreen
mac:WindowDidExitVersionBrowser
mac:WindowDidExpose
mac:WindowDidFocus
mac:WindowDidMiniaturize
mac:WindowDidMove
mac:WindowDidOrderOffScreen
mac:WindowDidOrderOnScreen
mac:WindowDidResignKey
mac:WindowDidResignMain
mac:WindowDidResize
mac:WindowDidUpdate
mac:WindowDidUpdateAlpha
mac:WindowDidUpdateCollectionBehavior
mac:WindowDidUpdateCollectionProperties
mac:WindowDidUpdateShadow
mac:WindowDidUpdateTitle
mac:WindowDidUpdateToolbar
mac:WindowDidZoom!
mac:WindowFileDraggingEntered
mac:WindowFileDraggingExited
mac:WindowFileDraggingPerformed
mac:WindowHide
mac:WindowMaximise!
mac:WindowUnMaximise!
mac:WindowMinimise!
mac:WindowUnMinimise!
mac:WindowShouldClose!
mac:WindowShow
mac:WindowWillBecomeKey
mac:WindowWillBecomeMain
mac:WindowWillBeginSheet
mac:WindowWillChangeOrderingMode
mac:WindowWillClose
mac:WindowWillDeminiaturize
mac:WindowWillEnterFullScreen
mac:WindowWillEnterVersionBrowser
mac:WindowWillExitFullScreen
mac:WindowWillExitVersionBrowser
mac:WindowWillFocus
mac:WindowWillMiniaturize
mac:WindowWillMove
mac:WindowWillOrderOffScreen
mac:WindowWillOrderOnScreen
mac:WindowWillResignMain
mac:WindowWillResize
mac:WindowWillUnfocus
mac:WindowWillUpdate
mac:WindowWillUpdateAlpha
mac:WindowWillUpdateCollectionBehavior
mac:WindowWillUpdateCollectionProperties
mac:WindowWillUpdateShadow
mac:WindowWillUpdateTitle
mac:WindowWillUpdateToolbar
mac:WindowWillUpdateVisibility
mac:WindowWillUseStandardFrame
mac:WindowZoomIn!
mac:WindowZoomOut!
mac:WindowZoomReset!
windows:APMPowerSettingChange
windows:APMPowerStatusChange
windows:APMResumeAutomatic
windows:APMResumeSuspend
windows:APMSuspend
windows:ApplicationStarted
windows:SystemThemeChanged
windows:WebViewNavigationCompleted
windows:WindowActive
windows:WindowBackgroundErase
windows:WindowClickActive
windows:WindowClosing
windows:WindowDidMove
windows:WindowDidResize
windows:WindowDPIChanged
windows:WindowDragDrop
windows:WindowDragEnter
windows:WindowDragLeave
windows:WindowDragOver
windows:WindowEndMove
windows:WindowEndResize
windows:WindowFullscreen
windows:WindowHide
windows:WindowInactive
windows:WindowKeyDown
windows:WindowKeyUp
windows:WindowKillFocus
windows:WindowNonClientHit
windows:WindowNonClientMouseDown
windows:WindowNonClientMouseLeave
windows:WindowNonClientMouseMove
windows:WindowNonClientMouseUp
windows:WindowPaint
windows:WindowRestore
windows:WindowSetFocus
windows:WindowShow
windows:WindowStartMove
windows:WindowStartResize
windows:WindowUnFullscreen
windows:WindowZOrderChanged
windows:WindowMinimise
windows:WindowUnMinimise
windows:WindowMaximise
windows:WindowUnMaximise
ios:ApplicationDidBecomeActive
ios:ApplicationDidEnterBackground
ios:ApplicationDidFinishLaunching
ios:ApplicationDidReceiveMemoryWarning
ios:ApplicationWillEnterForeground
ios:ApplicationWillResignActive
ios:ApplicationWillTerminate
ios:WindowDidLoad
ios:WindowWillAppear
ios:WindowDidAppear
ios:WindowWillDisappear
ios:WindowDidDisappear
ios:WindowSafeAreaInsetsChanged
ios:WindowOrientationChanged
ios:WindowTouchBegan
ios:WindowTouchMoved
ios:WindowTouchEnded
ios:WindowTouchCancelled
ios:WebViewDidStartNavigation
ios:WebViewDidFinishNavigation
ios:WebViewDidFailNavigation
ios:WebViewDecidePolicyForNavigationAction!
mac:WebViewWebContentProcessDidTerminate!
android:ActivityCreated
android:ActivityStarted
android:ActivityResumed
android:ActivityPaused
android:ActivityStopped
android:ActivityDestroyed
android:ApplicationLowMemory
android:WebViewPageStarted
android:WebViewPageFinished
ios:BatteryChanged
ios:NetworkChanged
ios:ThemeChanged
ios:ScreenLocked
ios:ScreenUnlocked
android:BatteryChanged
android:NetworkChanged
android:ThemeChanged
android:ScreenLocked
android:ScreenUnlocked
common:BatteryChanged
common:NetworkChanged
common:ScreenLocked
common:ScreenUnlocked
common:LowMemory

View File

@@ -0,0 +1,25 @@
//go:build darwin && !ios
package events
/*
#cgo CFLAGS: -x objective-c
#cgo LDFLAGS: -framework Cocoa -mmacosx-version-min=10.13
#include "events_darwin.h"
#include <stdlib.h>
#include <stdbool.h>
bool hasListener[MAX_EVENTS] = {false};
void registerListener(unsigned int event) {
hasListener[event] = true;
}
bool hasListeners(unsigned int event) {
//return hasListener[event];
return true;
}
*/
import "C"

View File

@@ -0,0 +1,150 @@
//go:build darwin
#ifndef _events_h
#define _events_h
extern void processApplicationEvent(unsigned int, void* data);
extern void processWindowEvent(unsigned int, unsigned int);
#define EventApplicationDidBecomeActive 1065
#define EventApplicationDidChangeBackingProperties 1066
#define EventApplicationDidChangeEffectiveAppearance 1067
#define EventApplicationDidChangeIcon 1068
#define EventApplicationDidChangeOcclusionState 1069
#define EventApplicationDidChangeScreenParameters 1070
#define EventApplicationDidChangeStatusBarFrame 1071
#define EventApplicationDidChangeStatusBarOrientation 1072
#define EventApplicationDidChangeTheme 1073
#define EventApplicationDidFinishLaunching 1074
#define EventApplicationDidHide 1075
#define EventApplicationDidResignActive 1076
#define EventApplicationDidUnhide 1077
#define EventApplicationDidUpdate 1078
#define EventApplicationDidWake 1079
#define EventApplicationScreensDidSleep 1080
#define EventApplicationScreensDidWake 1081
#define EventApplicationShouldHandleReopen 1082
#define EventApplicationWillBecomeActive 1083
#define EventApplicationWillFinishLaunching 1084
#define EventApplicationWillHide 1085
#define EventApplicationWillResignActive 1086
#define EventApplicationWillSleep 1087
#define EventApplicationWillTerminate 1088
#define EventApplicationWillUnhide 1089
#define EventApplicationWillUpdate 1090
#define EventMenuDidAddItem 1091
#define EventMenuDidBeginTracking 1092
#define EventMenuDidClose 1093
#define EventMenuDidDisplayItem 1094
#define EventMenuDidEndTracking 1095
#define EventMenuDidHighlightItem 1096
#define EventMenuDidOpen 1097
#define EventMenuDidPopUp 1098
#define EventMenuDidRemoveItem 1099
#define EventMenuDidSendAction 1100
#define EventMenuDidSendActionToItem 1101
#define EventMenuDidUpdate 1102
#define EventMenuWillAddItem 1103
#define EventMenuWillBeginTracking 1104
#define EventMenuWillDisplayItem 1105
#define EventMenuWillEndTracking 1106
#define EventMenuWillHighlightItem 1107
#define EventMenuWillOpen 1108
#define EventMenuWillPopUp 1109
#define EventMenuWillRemoveItem 1110
#define EventMenuWillSendAction 1111
#define EventMenuWillSendActionToItem 1112
#define EventMenuWillUpdate 1113
#define EventWebViewDidCommitNavigation 1114
#define EventWebViewDidFinishNavigation 1115
#define EventWebViewDidReceiveServerRedirectForProvisionalNavigation 1116
#define EventWebViewDidStartProvisionalNavigation 1117
#define EventWindowDidBecomeKey 1118
#define EventWindowDidBecomeMain 1119
#define EventWindowDidBeginSheet 1120
#define EventWindowDidChangeAlpha 1121
#define EventWindowDidChangeBackingLocation 1122
#define EventWindowDidChangeBackingProperties 1123
#define EventWindowDidChangeCollectionBehavior 1124
#define EventWindowDidChangeEffectiveAppearance 1125
#define EventWindowDidChangeOcclusionState 1126
#define EventWindowDidChangeOrderingMode 1127
#define EventWindowDidChangeScreen 1128
#define EventWindowDidChangeScreenParameters 1129
#define EventWindowDidChangeScreenProfile 1130
#define EventWindowDidChangeScreenSpace 1131
#define EventWindowDidChangeScreenSpaceProperties 1132
#define EventWindowDidChangeSharingType 1133
#define EventWindowDidChangeSpace 1134
#define EventWindowDidChangeSpaceOrderingMode 1135
#define EventWindowDidChangeTitle 1136
#define EventWindowDidChangeToolbar 1137
#define EventWindowDidDeminiaturize 1138
#define EventWindowDidEndSheet 1139
#define EventWindowDidEnterFullScreen 1140
#define EventWindowDidEnterVersionBrowser 1141
#define EventWindowDidExitFullScreen 1142
#define EventWindowDidExitVersionBrowser 1143
#define EventWindowDidExpose 1144
#define EventWindowDidFocus 1145
#define EventWindowDidMiniaturize 1146
#define EventWindowDidMove 1147
#define EventWindowDidOrderOffScreen 1148
#define EventWindowDidOrderOnScreen 1149
#define EventWindowDidResignKey 1150
#define EventWindowDidResignMain 1151
#define EventWindowDidResize 1152
#define EventWindowDidUpdate 1153
#define EventWindowDidUpdateAlpha 1154
#define EventWindowDidUpdateCollectionBehavior 1155
#define EventWindowDidUpdateCollectionProperties 1156
#define EventWindowDidUpdateShadow 1157
#define EventWindowDidUpdateTitle 1158
#define EventWindowDidUpdateToolbar 1159
#define EventWindowDidZoom 1160
#define EventWindowFileDraggingEntered 1161
#define EventWindowFileDraggingExited 1162
#define EventWindowFileDraggingPerformed 1163
#define EventWindowHide 1164
#define EventWindowMaximise 1165
#define EventWindowUnMaximise 1166
#define EventWindowMinimise 1167
#define EventWindowUnMinimise 1168
#define EventWindowShouldClose 1169
#define EventWindowShow 1170
#define EventWindowWillBecomeKey 1171
#define EventWindowWillBecomeMain 1172
#define EventWindowWillBeginSheet 1173
#define EventWindowWillChangeOrderingMode 1174
#define EventWindowWillClose 1175
#define EventWindowWillDeminiaturize 1176
#define EventWindowWillEnterFullScreen 1177
#define EventWindowWillEnterVersionBrowser 1178
#define EventWindowWillExitFullScreen 1179
#define EventWindowWillExitVersionBrowser 1180
#define EventWindowWillFocus 1181
#define EventWindowWillMiniaturize 1182
#define EventWindowWillMove 1183
#define EventWindowWillOrderOffScreen 1184
#define EventWindowWillOrderOnScreen 1185
#define EventWindowWillResignMain 1186
#define EventWindowWillResize 1187
#define EventWindowWillUnfocus 1188
#define EventWindowWillUpdate 1189
#define EventWindowWillUpdateAlpha 1190
#define EventWindowWillUpdateCollectionBehavior 1191
#define EventWindowWillUpdateCollectionProperties 1192
#define EventWindowWillUpdateShadow 1193
#define EventWindowWillUpdateTitle 1194
#define EventWindowWillUpdateToolbar 1195
#define EventWindowWillUpdateVisibility 1196
#define EventWindowWillUseStandardFrame 1197
#define EventWindowZoomIn 1198
#define EventWindowZoomOut 1199
#define EventWindowZoomReset 1200
#define EventWebViewWebContentProcessDidTerminate 1267
#define MAX_EVENTS 1268
#endif

View File

@@ -0,0 +1,40 @@
//go:build ios
#ifndef _events_h
#define _events_h
extern void processApplicationEvent(unsigned int, void* data);
extern void processWindowEvent(unsigned int, unsigned int);
#define EventApplicationDidBecomeActive 1245
#define EventApplicationDidEnterBackground 1246
#define EventApplicationDidFinishLaunching 1247
#define EventApplicationDidReceiveMemoryWarning 1248
#define EventApplicationWillEnterForeground 1249
#define EventApplicationWillResignActive 1250
#define EventApplicationWillTerminate 1251
#define EventWindowDidLoad 1252
#define EventWindowWillAppear 1253
#define EventWindowDidAppear 1254
#define EventWindowWillDisappear 1255
#define EventWindowDidDisappear 1256
#define EventWindowSafeAreaInsetsChanged 1257
#define EventWindowOrientationChanged 1258
#define EventWindowTouchBegan 1259
#define EventWindowTouchMoved 1260
#define EventWindowTouchEnded 1261
#define EventWindowTouchCancelled 1262
#define EventWebViewDidStartNavigation 1263
#define EventWebViewDidFinishNavigation 1264
#define EventWebViewDidFailNavigation 1265
#define EventWebViewDecidePolicyForNavigationAction 1266
#define EventBatteryChanged 1277
#define EventNetworkChanged 1278
#define EventThemeChanged 1279
#define EventScreenLocked 1280
#define EventScreenUnlocked 1281
#define MAX_EVENTS 1282
#endif

View File

@@ -0,0 +1,22 @@
//go:build linux && !android
package events
/*
#include "events_linux.h"
#include <stdlib.h>
#include <stdbool.h>
bool hasListener[MAX_EVENTS] = {false};
void registerListener(unsigned int event) {
hasListener[event] = true;
}
bool hasListeners(unsigned int event) {
//return hasListener[event];
return true;
}
*/
import "C"

View File

@@ -0,0 +1,26 @@
//go:build linux
#ifndef _events_h
#define _events_h
extern void processApplicationEvent(unsigned int, void* data);
extern void processWindowEvent(unsigned int, unsigned int);
#define EventApplicationStartup 1052
#define EventSystemDidWake 1053
#define EventSystemThemeChanged 1054
#define EventSystemWillSleep 1055
#define EventWindowDeleteEvent 1056
#define EventWindowDidMove 1057
#define EventWindowDidResize 1058
#define EventWindowFocusIn 1059
#define EventWindowFocusOut 1060
#define EventWindowLoadStarted 1061
#define EventWindowLoadRedirected 1062
#define EventWindowLoadCommitted 1063
#define EventWindowLoadFinished 1064
#define MAX_EVENTS 1065
#endif

View File

@@ -0,0 +1,277 @@
package events
func IsKnownEvent(name string) bool {
_, ok := knownEvents[name]
return ok
}
var knownEvents = map[string]struct{}{
"common:ApplicationOpenedWithFile": {},
"common:ApplicationStarted": {},
"common:ApplicationLaunchedWithUrl": {},
"common:ThemeChanged": {},
"common:SystemDidWake": {},
"common:SystemWillSleep": {},
"common:WindowClosing": {},
"common:WindowDidMove": {},
"common:WindowDidResize": {},
"common:WindowDPIChanged": {},
"common:WindowFilesDropped": {},
"common:WindowFocus": {},
"common:WindowFullscreen": {},
"common:WindowHide": {},
"common:WindowLostFocus": {},
"common:WindowMaximise": {},
"common:WindowMinimise": {},
"common:WindowToggleFrameless": {},
"common:WindowRestore": {},
"common:WindowRuntimeReady": {},
"common:WindowShow": {},
"common:WindowUnFullscreen": {},
"common:WindowUnMaximise": {},
"common:WindowUnMinimise": {},
"common:WindowZoom": {},
"common:WindowZoomIn": {},
"common:WindowZoomOut": {},
"common:WindowZoomReset": {},
"linux:ApplicationStartup": {},
"linux:SystemDidWake": {},
"linux:SystemThemeChanged": {},
"linux:SystemWillSleep": {},
"linux:WindowDeleteEvent": {},
"linux:WindowDidMove": {},
"linux:WindowDidResize": {},
"linux:WindowFocusIn": {},
"linux:WindowFocusOut": {},
"linux:WindowLoadStarted": {},
"linux:WindowLoadRedirected": {},
"linux:WindowLoadCommitted": {},
"linux:WindowLoadFinished": {},
"mac:ApplicationDidBecomeActive": {},
"mac:ApplicationDidChangeBackingProperties": {},
"mac:ApplicationDidChangeEffectiveAppearance": {},
"mac:ApplicationDidChangeIcon": {},
"mac:ApplicationDidChangeOcclusionState": {},
"mac:ApplicationDidChangeScreenParameters": {},
"mac:ApplicationDidChangeStatusBarFrame": {},
"mac:ApplicationDidChangeStatusBarOrientation": {},
"mac:ApplicationDidChangeTheme": {},
"mac:ApplicationDidFinishLaunching": {},
"mac:ApplicationDidHide": {},
"mac:ApplicationDidResignActive": {},
"mac:ApplicationDidUnhide": {},
"mac:ApplicationDidUpdate": {},
"mac:ApplicationDidWake": {},
"mac:ApplicationScreensDidSleep": {},
"mac:ApplicationScreensDidWake": {},
"mac:ApplicationShouldHandleReopen": {},
"mac:ApplicationWillBecomeActive": {},
"mac:ApplicationWillFinishLaunching": {},
"mac:ApplicationWillHide": {},
"mac:ApplicationWillResignActive": {},
"mac:ApplicationWillSleep": {},
"mac:ApplicationWillTerminate": {},
"mac:ApplicationWillUnhide": {},
"mac:ApplicationWillUpdate": {},
"mac:MenuDidAddItem": {},
"mac:MenuDidBeginTracking": {},
"mac:MenuDidClose": {},
"mac:MenuDidDisplayItem": {},
"mac:MenuDidEndTracking": {},
"mac:MenuDidHighlightItem": {},
"mac:MenuDidOpen": {},
"mac:MenuDidPopUp": {},
"mac:MenuDidRemoveItem": {},
"mac:MenuDidSendAction": {},
"mac:MenuDidSendActionToItem": {},
"mac:MenuDidUpdate": {},
"mac:MenuWillAddItem": {},
"mac:MenuWillBeginTracking": {},
"mac:MenuWillDisplayItem": {},
"mac:MenuWillEndTracking": {},
"mac:MenuWillHighlightItem": {},
"mac:MenuWillOpen": {},
"mac:MenuWillPopUp": {},
"mac:MenuWillRemoveItem": {},
"mac:MenuWillSendAction": {},
"mac:MenuWillSendActionToItem": {},
"mac:MenuWillUpdate": {},
"mac:WebViewDidCommitNavigation": {},
"mac:WebViewDidFinishNavigation": {},
"mac:WebViewDidReceiveServerRedirectForProvisionalNavigation": {},
"mac:WebViewDidStartProvisionalNavigation": {},
"mac:WebViewWebContentProcessDidTerminate": {},
"mac:WindowDidBecomeKey": {},
"mac:WindowDidBecomeMain": {},
"mac:WindowDidBeginSheet": {},
"mac:WindowDidChangeAlpha": {},
"mac:WindowDidChangeBackingLocation": {},
"mac:WindowDidChangeBackingProperties": {},
"mac:WindowDidChangeCollectionBehavior": {},
"mac:WindowDidChangeEffectiveAppearance": {},
"mac:WindowDidChangeOcclusionState": {},
"mac:WindowDidChangeOrderingMode": {},
"mac:WindowDidChangeScreen": {},
"mac:WindowDidChangeScreenParameters": {},
"mac:WindowDidChangeScreenProfile": {},
"mac:WindowDidChangeScreenSpace": {},
"mac:WindowDidChangeScreenSpaceProperties": {},
"mac:WindowDidChangeSharingType": {},
"mac:WindowDidChangeSpace": {},
"mac:WindowDidChangeSpaceOrderingMode": {},
"mac:WindowDidChangeTitle": {},
"mac:WindowDidChangeToolbar": {},
"mac:WindowDidDeminiaturize": {},
"mac:WindowDidEndSheet": {},
"mac:WindowDidEnterFullScreen": {},
"mac:WindowDidEnterVersionBrowser": {},
"mac:WindowDidExitFullScreen": {},
"mac:WindowDidExitVersionBrowser": {},
"mac:WindowDidExpose": {},
"mac:WindowDidFocus": {},
"mac:WindowDidMiniaturize": {},
"mac:WindowDidMove": {},
"mac:WindowDidOrderOffScreen": {},
"mac:WindowDidOrderOnScreen": {},
"mac:WindowDidResignKey": {},
"mac:WindowDidResignMain": {},
"mac:WindowDidResize": {},
"mac:WindowDidUpdate": {},
"mac:WindowDidUpdateAlpha": {},
"mac:WindowDidUpdateCollectionBehavior": {},
"mac:WindowDidUpdateCollectionProperties": {},
"mac:WindowDidUpdateShadow": {},
"mac:WindowDidUpdateTitle": {},
"mac:WindowDidUpdateToolbar": {},
"mac:WindowDidZoom": {},
"mac:WindowFileDraggingEntered": {},
"mac:WindowFileDraggingExited": {},
"mac:WindowFileDraggingPerformed": {},
"mac:WindowHide": {},
"mac:WindowMaximise": {},
"mac:WindowUnMaximise": {},
"mac:WindowMinimise": {},
"mac:WindowUnMinimise": {},
"mac:WindowShouldClose": {},
"mac:WindowShow": {},
"mac:WindowWillBecomeKey": {},
"mac:WindowWillBecomeMain": {},
"mac:WindowWillBeginSheet": {},
"mac:WindowWillChangeOrderingMode": {},
"mac:WindowWillClose": {},
"mac:WindowWillDeminiaturize": {},
"mac:WindowWillEnterFullScreen": {},
"mac:WindowWillEnterVersionBrowser": {},
"mac:WindowWillExitFullScreen": {},
"mac:WindowWillExitVersionBrowser": {},
"mac:WindowWillFocus": {},
"mac:WindowWillMiniaturize": {},
"mac:WindowWillMove": {},
"mac:WindowWillOrderOffScreen": {},
"mac:WindowWillOrderOnScreen": {},
"mac:WindowWillResignMain": {},
"mac:WindowWillResize": {},
"mac:WindowWillUnfocus": {},
"mac:WindowWillUpdate": {},
"mac:WindowWillUpdateAlpha": {},
"mac:WindowWillUpdateCollectionBehavior": {},
"mac:WindowWillUpdateCollectionProperties": {},
"mac:WindowWillUpdateShadow": {},
"mac:WindowWillUpdateTitle": {},
"mac:WindowWillUpdateToolbar": {},
"mac:WindowWillUpdateVisibility": {},
"mac:WindowWillUseStandardFrame": {},
"mac:WindowZoomIn": {},
"mac:WindowZoomOut": {},
"mac:WindowZoomReset": {},
"windows:APMPowerSettingChange": {},
"windows:APMPowerStatusChange": {},
"windows:APMResumeAutomatic": {},
"windows:APMResumeSuspend": {},
"windows:APMSuspend": {},
"windows:ApplicationStarted": {},
"windows:SystemThemeChanged": {},
"windows:WebViewNavigationCompleted": {},
"windows:WindowActive": {},
"windows:WindowBackgroundErase": {},
"windows:WindowClickActive": {},
"windows:WindowClosing": {},
"windows:WindowDidMove": {},
"windows:WindowDidResize": {},
"windows:WindowDPIChanged": {},
"windows:WindowDragDrop": {},
"windows:WindowDragEnter": {},
"windows:WindowDragLeave": {},
"windows:WindowDragOver": {},
"windows:WindowEndMove": {},
"windows:WindowEndResize": {},
"windows:WindowFullscreen": {},
"windows:WindowHide": {},
"windows:WindowInactive": {},
"windows:WindowKeyDown": {},
"windows:WindowKeyUp": {},
"windows:WindowKillFocus": {},
"windows:WindowNonClientHit": {},
"windows:WindowNonClientMouseDown": {},
"windows:WindowNonClientMouseLeave": {},
"windows:WindowNonClientMouseMove": {},
"windows:WindowNonClientMouseUp": {},
"windows:WindowPaint": {},
"windows:WindowRestore": {},
"windows:WindowSetFocus": {},
"windows:WindowShow": {},
"windows:WindowStartMove": {},
"windows:WindowStartResize": {},
"windows:WindowUnFullscreen": {},
"windows:WindowZOrderChanged": {},
"windows:WindowMinimise": {},
"windows:WindowUnMinimise": {},
"windows:WindowMaximise": {},
"windows:WindowUnMaximise": {},
"ios:ApplicationDidBecomeActive": {},
"ios:ApplicationDidEnterBackground": {},
"ios:ApplicationDidFinishLaunching": {},
"ios:ApplicationDidReceiveMemoryWarning": {},
"ios:ApplicationWillEnterForeground": {},
"ios:ApplicationWillResignActive": {},
"ios:ApplicationWillTerminate": {},
"ios:WindowDidLoad": {},
"ios:WindowWillAppear": {},
"ios:WindowDidAppear": {},
"ios:WindowWillDisappear": {},
"ios:WindowDidDisappear": {},
"ios:WindowSafeAreaInsetsChanged": {},
"ios:WindowOrientationChanged": {},
"ios:WindowTouchBegan": {},
"ios:WindowTouchMoved": {},
"ios:WindowTouchEnded": {},
"ios:WindowTouchCancelled": {},
"ios:WebViewDidStartNavigation": {},
"ios:WebViewDidFinishNavigation": {},
"ios:WebViewDidFailNavigation": {},
"ios:WebViewDecidePolicyForNavigationAction": {},
"android:ActivityCreated": {},
"android:ActivityStarted": {},
"android:ActivityResumed": {},
"android:ActivityPaused": {},
"android:ActivityStopped": {},
"android:ActivityDestroyed": {},
"android:ApplicationLowMemory": {},
"android:WebViewPageStarted": {},
"android:WebViewPageFinished": {},
"ios:BatteryChanged": {},
"ios:NetworkChanged": {},
"ios:ThemeChanged": {},
"ios:ScreenLocked": {},
"ios:ScreenUnlocked": {},
"android:BatteryChanged": {},
"android:NetworkChanged": {},
"android:ThemeChanged": {},
"android:ScreenLocked": {},
"android:ScreenUnlocked": {},
"common:BatteryChanged": {},
"common:NetworkChanged": {},
"common:ScreenLocked": {},
"common:ScreenUnlocked": {},
"common:LowMemory": {},
}