Documentation
On this page

Interface · Application Lifecycle

DesktopApplication

Desktop application lifetime and window manager.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Members

isDisposed

readonly isDisposed: boolean

Whether the application lifetime has been disposed.

Type: boolean

windowCount

readonly windowCount: number

Number of currently open application windows.

Type: number

createTrayIcon

createTrayIcon(options: TrayIconOptions): DesktopTrayIcon

Creates a native system tray icon.

createWindow

createWindow(element: GuiChild, options?: DesktopWindowOptions): DesktopWindow

Creates and renders a native window.

dispose

dispose(): void

Disposes all windows, tray icons, and application resources.

shutdown

shutdown(exitCode?: number): void

Ends the desktop message loop with an optional process exit code.

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1101 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.