Colton Idle
01/05/2021, 1:25 PMAppManager.setEvents(
onAppStart = { println("onAppStart") }, // Invoked before the first window is created
onAppExit = { println("onAppExit") } // Invoked after all windows are closed
)
It doesn't tell you where you would call that though? Since it's invoked BEFORE window is created... I wouldn't put it in my window right? But where do I put it? As a top level function? I'm probably missing something basic here.xetra11
01/05/2021, 2:41 PMmain
initializeApp()
in this example also has the logic to for setEvents
on the AppManagerColton Idle
01/05/2021, 6:40 PMfun main() = Window (...
xetra11
01/05/2021, 6:47 PMfun main() = Window (...
or fun main() { Window( ...
so in the latter case you can put logic beforehandColton Idle
01/05/2021, 6:55 PM