Window
These methods give control of the application window.
WindowSetTitleโ
Sets the text in the window title bar.
Go: WindowSetTitle(ctx context.Context, title string)
JS: WindowSetTitle(title: string)
WindowFullscreenโ
Makes the window full screen.
Go: WindowFullscreen(ctx context.Context)
JS: WindowFullscreen()
WindowUnfullscreenโ
Restores the previous window dimensions and position prior to full screen.
Go: WindowUnfullscreen(ctx context.Context)
JS: WindowUnfullscreen()
WindowIsFullscreenโ
Returns true if the window is full screen.
Go: WindowIsFullscreen(ctx context.Context) bool
JS: WindowIsFullscreen() Promise<boolean>
WindowCenterโ
Centers the window on the monitor the window is currently on.
Go: WindowCenter(ctx context.Context)
JS: WindowCenter()
WindowExecJSโ
Executes arbitrary JS code in the window.
This method runs the code in the browser asynchronously and returns immediately. If the script causes any errors, they will only be available in the browser console.
Go: WindowExecJS(ctx context.Context, js string)
WindowReloadโ
Performs a "reload" (Reloads current page).
Go: WindowReload(ctx context.Context)
JS: WindowReload()
WindowReloadAppโ
Reloads the application frontend.
Go: WindowReloadApp(ctx context.Context)
JS: WindowReloadApp()
WindowSetSystemDefaultThemeโ
Windows only.
Go: WindowSetSystemDefaultTheme(ctx context.Context)
JS: WindowSetSystemDefaultTheme()
Sets window theme to system default (dark/light).
WindowSetLightThemeโ
Windows only.
Go: WindowSetLightTheme(ctx context.Context)
JS: WindowSetLightTheme()
Sets window theme to light.
WindowSetDarkThemeโ
Windows only.
Go: WindowSetDarkTheme(ctx context.Context)
JS: WindowSetDarkTheme()
Sets window theme to dark.