Interface · Application Lifecycle
DesktopApplication
Desktop application lifetime and window manager.
@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43Members
isDisposed
readonly isDisposed: booleanWhether the application lifetime has been disposed.
Type: boolean
windowCount
readonly windowCount: numberNumber of currently open application windows.
Type: number
createTrayIcon
createTrayIcon(options: TrayIconOptions): DesktopTrayIconCreates a native system tray icon.
createWindow
createWindow(element: GuiChild, options?: DesktopWindowOptions): DesktopWindowCreates and renders a native window.
dispose
dispose(): voidDisposes all windows, tray icons, and application resources.
shutdown
shutdown(exitCode?: number): voidEnds the desktop message loop with an optional process exit code.
Related symbols
Source
SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1101 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.