Companion

external object Companion(source)

Set the window and webview background color.

Platform-specific:

  • Android / iOS: Unsupported for the window layer.

  • macOS / iOS: Not implemented for the webview layer.

  • Windows:

  • alpha channel is ignored for the window layer.

  • On Windows 7, alpha channel is ignored for the webview layer.

  • On Windows 8 and newer, if alpha channel is not 0, it will be ignored.

Since

2.1.0

Functions

Link copied to clipboard

Gets a list of instances of Webview for all available webviews.

Link copied to clipboard
external fun getByLabel(label: String): Promise<WebviewWindow?>

Gets the Webview for the webview associated with the given label.

Link copied to clipboard
external fun getCurrent(): WebviewWindow

Get an instance of Webview for the current webview.