AppManager.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.
x
xetra11
01/05/2021, 2:41 PM
You can put it anywhere - like directly after the invokcation of