ウィンドウ
アプリケーションウィンドウを制御できるメソッド群です。
WindowSetTitle
ウィンドウのタイトルバーにテキストを設定します。
Go: WindowSetTitle(ctx context.Context, title string)
JS: WindowSetTitle(title: string)
WindowFullscreen
ウィンドウをフルスクリーンにします。
Go: WindowFullscreen(ctx context.Context)
JS: WindowFullscreen()
WindowUnfullscreen
フルスクリーンにする前のウィンドウサイズおよび位置に戻します。
Go: WindowUnfullscreen(ctx context.Context)
JS: WindowUnfullscreen()
WindowIsFullscreen
ウィンドウがフルスクリーンの場合は、trueを返します。
Go: WindowIsFullscreen(ctx context.Context) bool
JS: WindowIsFullscreen() Promise<boolean>
WindowCenter
ウィンドウが現在表示されているモニターの中央に、ウィンドウを配置させます。
Go: WindowCenter(ctx context.Context)
JS: WindowCenter()
WindowExecJS
ウィンドウ内で、任意のJSコードを実行します。
このメソッドは、ブラウザ上で非同期にコードを実行し、すぐにリターンされます。 スクリプトでエラーが発生した場合、エラーログはブラウザコンソールでのみ確認できます。
Go: WindowExecJS(ctx context.Context, js string)
WindowReload
リロードします。(現在表示されているページをリロード)
Go: WindowReload(ctx context.Context)
JS: WindowReload()
WindowReloadApp
アプリケーションフロントエンドをリロードします。
Go: WindowReloadApp(ctx context.Context)
JS: WindowReloadApp()