Companion

external object Companion(source)

Functions

Link copied to clipboard
external fun fromDevToolsTargetId(targetId: String): WebContents?

A WebContents instance with the given TargetID, or undefined if there is no WebContents associated with the given TargetID.

Link copied to clipboard
external fun fromFrame(frame: WebFrameMain): WebContents?

A WebContents instance with the given WebFrameMain, or undefined if there is no WebContents associated with the given WebFrameMain.

Link copied to clipboard
external fun fromId(id: Double): WebContents?

A WebContents instance with the given ID, or undefined if there is no WebContents associated with the given ID.

Link copied to clipboard

An array of all WebContents instances. This will contain web contents for all windows, webviews, opened DevTools, and DevTools extension background pages.

Link copied to clipboard

The web contents that is focused in this application, otherwise returns null.