onCloseRequested

fun onCloseRequested(handler: (event: CloseRequestedEvent) -> Any): ERROR CLASS: Symbol not found for js.promise.Promise<{tauri/apps/api/UnlistenFn=} kotlin/Function0<kotlin/Unit>>(source)

Listen to window close requested. Emitted when the user requests to closes the window.