WebviewTag

external interface WebviewTag : HTMLElement(source)

Properties

Link copied to clipboard
external var accessKey: String
Link copied to clipboard
external val accessKeyLabel: String
Link copied to clipboard
abstract external var allowpopups: Boolean

A boolean. When this attribute is present the guest page will be allowed to open new windows. Popups are disabled by default.

Link copied to clipboard
Link copied to clipboard
open external var ariaAtomic: String?
Link copied to clipboard
open external var ariaAutoComplete: String?
Link copied to clipboard
open external var ariaBrailleLabel: String?
Link copied to clipboard
Link copied to clipboard
open external var ariaBusy: String?
Link copied to clipboard
open external var ariaChecked: String?
Link copied to clipboard
open external var ariaColCount: String?
Link copied to clipboard
open external var ariaColIndex: String?
Link copied to clipboard
open external var ariaColIndexText: String?
Link copied to clipboard
open external var ariaColSpan: String?
Link copied to clipboard
Link copied to clipboard
open external var ariaCurrent: String?
Link copied to clipboard
Link copied to clipboard
open external var ariaDescription: String?
Link copied to clipboard
Link copied to clipboard
open external var ariaDisabled: String?
Link copied to clipboard
Link copied to clipboard
open external var ariaExpanded: String?
Link copied to clipboard
Link copied to clipboard
open external var ariaHasPopup: String?
Link copied to clipboard
open external var ariaHidden: String?
Link copied to clipboard
open external var ariaInvalid: String?
Link copied to clipboard
open external var ariaKeyShortcuts: String?
Link copied to clipboard
open external var ariaLabel: String?
Link copied to clipboard
Link copied to clipboard
open external var ariaLevel: String?
Link copied to clipboard
open external var ariaLive: String?
Link copied to clipboard
open external var ariaModal: String?
Link copied to clipboard
open external var ariaMultiLine: String?
Link copied to clipboard
open external var ariaMultiSelectable: String?
Link copied to clipboard
open external var ariaOrientation: String?
Link copied to clipboard
Link copied to clipboard
open external var ariaPlaceholder: String?
Link copied to clipboard
open external var ariaPosInSet: String?
Link copied to clipboard
open external var ariaPressed: String?
Link copied to clipboard
open external var ariaReadOnly: String?
Link copied to clipboard
open external var ariaRelevant: String?
Link copied to clipboard
open external var ariaRequired: String?
Link copied to clipboard
open external var ariaRoleDescription: String?
Link copied to clipboard
open external var ariaRowCount: String?
Link copied to clipboard
open external var ariaRowIndex: String?
Link copied to clipboard
open external var ariaRowIndexText: String?
Link copied to clipboard
open external var ariaRowSpan: String?
Link copied to clipboard
open external var ariaSelected: String?
Link copied to clipboard
open external var ariaSetSize: String?
Link copied to clipboard
open external var ariaSort: String?
Link copied to clipboard
open external var ariaValueMax: String?
Link copied to clipboard
open external var ariaValueMin: String?
Link copied to clipboard
open external var ariaValueNow: String?
Link copied to clipboard
open external var ariaValueText: String?
Link copied to clipboard
open external val assignedSlot: HTMLSlotElement?
Link copied to clipboard
external val attributes: NamedNodeMap
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external var autocorrect: Boolean
Link copied to clipboard
open external var autofocus: Boolean
Link copied to clipboard
external val baseURI: String
Link copied to clipboard
open external val childElementCount: Int
Link copied to clipboard
Link copied to clipboard
open external val children: HTMLCollection<*>
Link copied to clipboard
Link copied to clipboard
external var className: ClassName
Link copied to clipboard
external val clientHeight: Int
Link copied to clipboard
external val clientLeft: Int
Link copied to clipboard
external val clientTop: Int
Link copied to clipboard
external val clientWidth: Int
Link copied to clipboard
abstract external val closeEvent: EventInstance<DOMEvent, WebviewTag, Node>
Link copied to clipboard
Link copied to clipboard
open external var contentEditable: String
Link copied to clipboard
external val currentCSSZoom: Double
Link copied to clipboard
Link copied to clipboard
open external val dataset: DOMStringMap
Link copied to clipboard
external var dataTestId: DataTestId?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external var dir: String
Link copied to clipboard
abstract external var disableblinkfeatures: String

A string which is a list of strings which specifies the blink features to be disabled separated by ,. The full list of supported feature strings can be found in the RuntimeEnabledFeatures.json5 file.

Link copied to clipboard
abstract external var disablewebsecurity: Boolean

A boolean. When this attribute is present the guest page will have web security disabled. Web security is enabled by default.

Link copied to clipboard
Link copied to clipboard
external var draggable: Boolean
Link copied to clipboard
external var editContext: EditContext?
Link copied to clipboard
abstract external var enableblinkfeatures: String

A string which is a list of strings which specifies the blink features to be enabled separated by ,. The full list of supported feature strings can be found in the RuntimeEnabledFeatures.json5 file.

Link copied to clipboard
Link copied to clipboard
open external var enterKeyHint: EnterKeyHint
Link copied to clipboard
external val firstChild: ChildNode?
Link copied to clipboard
open external val firstElementChild: Element?
Link copied to clipboard
Link copied to clipboard
external var hidden: Hidden
Link copied to clipboard
abstract external var httpreferrer: String

A string that sets the referrer URL for the guest page.

Link copied to clipboard
external var id: ElementId
Link copied to clipboard
external var inert: Boolean
Link copied to clipboard
external var innerHTML: HtmlSource
Link copied to clipboard
external var innerText: String
Link copied to clipboard
open external var inputMode: InputMode
Link copied to clipboard
Link copied to clipboard
external val isConnected: Boolean
Link copied to clipboard
open external val isContentEditable: Boolean
Link copied to clipboard
external var lang: String
Link copied to clipboard
external val lastChild: ChildNode?
Link copied to clipboard
open external val lastElementChild: Element?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external val localName: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external val namespaceURI: String?
Link copied to clipboard
open external val nextElementSibling: Element?
Link copied to clipboard
external val nextSibling: ChildNode?
Link copied to clipboard
abstract external var nodeintegration: Boolean

A boolean. When this attribute is present the guest page in webview will have node integration and can use node APIs like require and process to access low level system resources. Node integration is disabled by default in the guest page.

Link copied to clipboard
abstract external var nodeintegrationinsubframes: Boolean

A boolean for the experimental option for enabling NodeJS support in sub-frames such as iframes inside the webview. All your preloads will load for every iframe, you can use process.isMainFrame to determine if you are in the main frame or not. This option is disabled by default in the guest page.

Link copied to clipboard
external val nodeName: String
Link copied to clipboard
external val nodeType: NodeType
Link copied to clipboard
external var nodeValue: String?
Link copied to clipboard
open external var nonce: String
Link copied to clipboard
external val offsetHeight: Int
Link copied to clipboard
external val offsetLeft: Int
Link copied to clipboard
external val offsetParent: Element?
Link copied to clipboard
external val offsetTop: Int
Link copied to clipboard
external val offsetWidth: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open external var onerror: JsFunction<*, *>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external var outerHTML: HtmlSource
Link copied to clipboard
external var outerText: String
Link copied to clipboard
open external override val ownerDocument: Document
Link copied to clipboard
external val parentElement: HTMLElement?
Link copied to clipboard
external val parentNode: ParentNode?
Link copied to clipboard
external val part: DOMTokenList<JsString>
Link copied to clipboard
abstract external var partition: String

A string that sets the session used by the page. If partition starts with persist:, the page will use a persistent session available to all pages in the app with the same partition. if there is no persist: prefix, the page will use an in-memory session. By assigning the same partition, multiple pages can share the same session. If the partition is unset then default session of the app will be used.

Link copied to clipboard
abstract external var plugins: Boolean

A boolean. When this attribute is present the guest page in webview will be able to use browser plugins. Plugins are disabled by default.

Link copied to clipboard
external var popover: Popover?
Link copied to clipboard
external val prefix: String?
Link copied to clipboard
abstract external var preload: String

A string that specifies a script that will be loaded before other scripts run in the guest page. The protocol of script's URL must be file: (even when using asar: archives) because it will be loaded by Node's require under the hood, which treats asar: archives as virtual directories.

Link copied to clipboard
open external val previousElementSibling: Element?
Link copied to clipboard
external val previousSibling: ChildNode?
Link copied to clipboard
open external var role: String?
Link copied to clipboard
external val scrollHeight: Int
Link copied to clipboard
external var scrollLeft: Double
Link copied to clipboard
external var scrollTop: Double
Link copied to clipboard
external val scrollWidth: Int
Link copied to clipboard
external val shadowRoot: ShadowRoot?
Link copied to clipboard
external var slot: String
Link copied to clipboard
external var spellcheck: Boolean
Link copied to clipboard
abstract external var src: String

A string representing the visible URL. Writing to this attribute initiates top-level navigation.

Link copied to clipboard
open external val style: CSSStyleDeclaration
Link copied to clipboard
open external var tabIndex: Int
Link copied to clipboard
external val tagName: String
Link copied to clipboard
open external override var textContent: String?
Link copied to clipboard
external var title: String
Link copied to clipboard
external var translate: Boolean
Link copied to clipboard
Link copied to clipboard
abstract external var useragent: String

A string that sets the user agent for the guest page before the page is navigated to. Once the page is loaded, use the setUserAgent method to change the user agent.

Link copied to clipboard
abstract external var webpreferences: String

A string which is a comma separated list of strings which specifies the web preferences to be set on the webview. The full list of supported preference strings can be found in BrowserWindow.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract external fun adjustSelection(options: AdjustSelectionOptions)

Adjusts the current text selection starting and ending points in the focused frame by the given amounts. A negative amount moves the selection towards the beginning of the document, and a positive amount moves the selection towards the end of the document.

Link copied to clipboard
open external fun after(vararg nodes: String)
open external fun after(vararg nodes: Node)
Link copied to clipboard
open external fun animate(keyframes: ReadonlyArray<Keyframe>?, options: Double): Animation
open external fun animate(keyframes: ReadonlyArray<Keyframe>?, options: KeyframeAnimationOptions): Animation
open external fun animate(keyframes: PropertyIndexedKeyframes?, options: Double): Animation
open external fun animate(keyframes: PropertyIndexedKeyframes?, options: KeyframeAnimationOptions): Animation
Link copied to clipboard
open external fun append(vararg nodes: String)
open external fun append(vararg nodes: Node)
Link copied to clipboard
external fun <T : Node> appendChild(node: T): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open external fun before(vararg nodes: String)
open external fun before(vararg nodes: Node)
Link copied to clipboard
open external fun blur()
Link copied to clipboard
abstract external fun canGoBack(): Boolean

Whether the guest page can go back.

Link copied to clipboard
abstract external fun canGoForward(): Boolean

Whether the guest page can go forward.

Link copied to clipboard
abstract external fun canGoToOffset(offset: Double): Boolean

Whether the guest page can go to offset.

Link copied to clipboard
abstract external fun capturePage(rect: Rectangle = definedExternally): Promise<NativeImage>

Resolves with a NativeImage

Link copied to clipboard
abstract external fun centerSelection()

Centers the current text selection in page.

Link copied to clipboard
Link copied to clipboard
abstract external fun clearHistory()

Clears the navigation history.

Link copied to clipboard
external fun click()
Link copied to clipboard
external fun cloneNode(subtree: Boolean): Node
Link copied to clipboard
abstract external fun closeDevTools()

Closes the DevTools window of guest page.

Link copied to clipboard
external fun closest(selector: String): Element?
external fun <T : Element> closest(selector: TagName<T>): T?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun contains(other: Node?): Boolean
Link copied to clipboard
abstract external fun copy()

Executes editing command copy in page.

Link copied to clipboard
abstract external fun cut()

Executes editing command cut in page.

Link copied to clipboard
abstract external fun delete()

Executes editing command delete in page.

Link copied to clipboard
open external fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
abstract external fun downloadURL(url: String, options: DownloadURLOptions = definedExternally)

Initiates a download of the resource at url without navigating.

Link copied to clipboard
abstract external fun executeJavaScript(code: String, userGesture: Boolean = definedExternally): Promise<Any?>

A promise that resolves with the result of the executed code or is rejected if the result of the code is a rejected promise.

Link copied to clipboard
abstract external fun findInPage(text: String, options: FindInPageOptions = definedExternally): Double

The request id used for the request.

Link copied to clipboard
open external fun focus(options: FocusOptions)
Link copied to clipboard
Link copied to clipboard
external fun getAttribute(qualifiedName: String): String?
Link copied to clipboard
Link copied to clipboard
external fun getAttributeNode(qualifiedName: String): Attr?
Link copied to clipboard
external fun getAttributeNodeNS(namespace: String?, localName: String): Attr?
Link copied to clipboard
external fun getAttributeNS(namespace: String?, localName: String): String?
Link copied to clipboard
Link copied to clipboard
external fun getClientRects(): DOMRectList
Link copied to clipboard
Link copied to clipboard
external fun getElementsByTagName(qualifiedName: String): HTMLCollection<Element>
external fun <T : Element> getElementsByTagName(qualifiedName: TagName<T>): HTMLCollection<T>
Link copied to clipboard
external fun getElementsByTagNameNS(namespace: String?, localName: String): HTMLCollection<Element>
external fun <T : Element> getElementsByTagNameNS(namespaceURI: TagNamespace<T>, localName: TagName<T>): HTMLCollection<T>
Link copied to clipboard
external fun getHTML(options: GetHTMLOptions): String
Link copied to clipboard
external fun getRootNode(options: GetRootNodeOptions): Node
Link copied to clipboard
abstract external fun getTitle(): String

The title of guest page.

Link copied to clipboard
abstract external fun getURL(): String

The URL of guest page.

Link copied to clipboard
abstract external fun getUserAgent(): String

The user agent for guest page.

Link copied to clipboard
abstract external fun getWebContentsId(): Double

The WebContents ID of this webview.

Link copied to clipboard
abstract external fun getZoomFactor(): Double

the current zoom factor.

Link copied to clipboard
abstract external fun getZoomLevel(): Double

the current zoom level.

Link copied to clipboard
abstract external fun goBack()

Makes the guest page go back.

Link copied to clipboard
abstract external fun goForward()

Makes the guest page go forward.

Link copied to clipboard
abstract external fun goToIndex(index: Double)

Navigates to the specified absolute index.

Link copied to clipboard
abstract external fun goToOffset(offset: Double)

Navigates to the specified offset from the "current entry".

Link copied to clipboard
external fun hasAttribute(qualifiedName: String): Boolean
Link copied to clipboard
external fun hasAttributeNS(namespace: String?, localName: String): Boolean
Link copied to clipboard
external fun hasAttributes(): Boolean
Link copied to clipboard
external fun hasChildNodes(): Boolean
Link copied to clipboard
external fun hasPointerCapture(pointerId: Int): Boolean
Link copied to clipboard
external fun hidePopover()
Link copied to clipboard
external fun insertAdjacentElement(where: InsertPosition, element: Element): Element?
Link copied to clipboard
external fun insertAdjacentHTML(position: InsertPosition, string: String)
external fun insertAdjacentHTML(position: InsertPosition, string: TrustedHTML)
Link copied to clipboard
external fun insertAdjacentText(where: InsertPosition, data: String)
Link copied to clipboard
external fun <T : Node> insertBefore(node: T, child: Node?): T
Link copied to clipboard
abstract external fun insertCSS(css: String): Promise<String>

A promise that resolves with a key for the inserted CSS that can later be used to remove the CSS via <webview>.removeInsertedCSS(key).

Link copied to clipboard
abstract external fun insertText(text: String): Promise<Void>

Inserts text to the focused element.

Link copied to clipboard
abstract external fun inspectElement(x: Double, y: Double)

Starts inspecting element at position (x, y) of guest page.

Link copied to clipboard
abstract external fun inspectServiceWorker()

Opens the DevTools for the service worker context present in the guest page.

Link copied to clipboard
abstract external fun inspectSharedWorker()

Opens the DevTools for the shared worker context present in the guest page.

Link copied to clipboard
abstract external fun isAudioMuted(): Boolean

Whether guest page has been muted.

Link copied to clipboard
abstract external fun isCrashed(): Boolean

Whether the renderer process has crashed.

Link copied to clipboard
abstract external fun isCurrentlyAudible(): Boolean

Whether audio is currently playing.

Link copied to clipboard
external fun isDefaultNamespace(namespace: String?): Boolean
Link copied to clipboard
abstract external fun isDevToolsFocused(): Boolean

Whether DevTools window of guest page is focused.

Link copied to clipboard
abstract external fun isDevToolsOpened(): Boolean

Whether guest page has a DevTools window attached.

Link copied to clipboard
external fun isEqualNode(otherNode: Node?): Boolean
Link copied to clipboard
abstract external fun isLoading(): Boolean

Whether guest page is still loading resources.

Link copied to clipboard
abstract external fun isLoadingMainFrame(): Boolean

Whether the main frame (and not just iframes or frames within it) is still loading.

Link copied to clipboard
external fun isSameNode(otherNode: Node?): Boolean
Link copied to clipboard
abstract external fun isWaitingForResponse(): Boolean

Whether the guest page is waiting for a first-response for the main resource of the page.

Link copied to clipboard
abstract external fun loadURL(url: String, options: LoadURLOptions = definedExternally): Promise<Void>

The promise will resolve when the page has finished loading (see did-finish-load), and rejects if the page fails to load (see did-fail-load).

Link copied to clipboard
external fun lookupNamespaceURI(prefix: String?): String?
Link copied to clipboard
external fun lookupPrefix(namespace: String?): String?
Link copied to clipboard
external fun matches(selectors: String): Boolean
Link copied to clipboard
open external fun moveBefore(node: Node, child: Node?)
Link copied to clipboard
external fun normalize()
Link copied to clipboard
abstract external fun openDevTools()

Opens a DevTools window for guest page.

Link copied to clipboard
abstract external fun paste()

Executes editing command paste in page.

Link copied to clipboard
abstract external fun pasteAndMatchStyle()

Executes editing command pasteAndMatchStyle in page.

Link copied to clipboard
open external fun prepend(vararg nodes: String)
open external fun prepend(vararg nodes: Node)
Link copied to clipboard
abstract external fun print(options: WebviewTagPrintOptions = definedExternally): Promise<Void>

Prints webview's web page. Same as webContents.print([options]).

Link copied to clipboard
abstract external fun printToPDF(options: PrintToPDFOptions): Promise<Uint8Array<*>>

Resolves with the generated PDF data.

Link copied to clipboard
open external fun querySelector(selectors: String): Element?
open external fun <T : Element> querySelector(selectors: TagName<T>): T?
Link copied to clipboard
open external fun querySelectorAll(selectors: String): NodeList<Element>
open external fun <T : Element> querySelectorAll(selectors: TagName<T>): NodeList<T>
Link copied to clipboard
abstract external fun redo()

Executes editing command redo in page.

Link copied to clipboard
external fun releasePointerCapture(pointerId: Int)
Link copied to clipboard
abstract external fun reload()

Reloads the guest page.

Link copied to clipboard
abstract external fun reloadIgnoringCache()

Reloads the guest page and ignores cache.

Link copied to clipboard
open external fun remove()
Link copied to clipboard
external fun removeAttribute(qualifiedName: String)
Link copied to clipboard
external fun removeAttributeNode(attr: Attr): Attr
Link copied to clipboard
external fun removeAttributeNS(namespace: String?, localName: String)
Link copied to clipboard
external fun <T : Node> removeChild(child: T): T
Link copied to clipboard
abstract external fun removeInsertedCSS(key: String): Promise<Void>

Resolves if the removal was successful.

Link copied to clipboard
abstract external fun replace(text: String)

Executes editing command replace in page.

Link copied to clipboard
external fun <T : Node> replaceChild(node: Node, child: T): T
Link copied to clipboard
open external fun replaceChildren()
open external fun replaceChildren(vararg nodes: String)
open external fun replaceChildren(vararg nodes: Node)
Link copied to clipboard
abstract external fun replaceMisspelling(text: String)

Executes editing command replaceMisspelling in page.

Link copied to clipboard
open external fun replaceWith(vararg nodes: String)
open external fun replaceWith(vararg nodes: Node)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun scroll(options: ScrollToOptions): Promise<Void>?
external fun scroll(x: Double, y: Double): Promise<Void>?
Link copied to clipboard
external fun scrollBy(options: ScrollToOptions): Promise<Void>?
external fun scrollBy(x: Double, y: Double): Promise<Void>?
Link copied to clipboard
Link copied to clipboard
external fun scrollTo(options: ScrollToOptions): Promise<Void>?
external fun scrollTo(x: Double, y: Double): Promise<Void>?
Link copied to clipboard
abstract external fun scrollToBottom()

Scrolls to the bottom of the current <webview>.

Link copied to clipboard
abstract external fun scrollToTop()

Scrolls to the top of the current <webview>.

Link copied to clipboard
abstract external fun selectAll()

Executes editing command selectAll in page.

Link copied to clipboard
abstract external fun send(channel: String, vararg args: Any?): Promise<Void>

Send an asynchronous message to renderer process via channel, you can also send arbitrary arguments. The renderer process can handle the message by listening to the channel event with the ipcRenderer module.

Link copied to clipboard
abstract external fun sendInputEvent(event: KeyboardInputEvent): Promise<Void>
abstract external fun sendInputEvent(event: MouseInputEvent): Promise<Void>
abstract external fun sendInputEvent(event: MouseWheelInputEvent): Promise<Void>

Sends an input event to the page.

Link copied to clipboard
abstract external fun sendToFrame(frameId: Tuple2<Double, Double>, channel: String, vararg args: Any?): Promise<Void>

Send an asynchronous message to renderer process via channel, you can also send arbitrary arguments. The renderer process can handle the message by listening to the channel event with the ipcRenderer module.

Link copied to clipboard
external fun setAttribute(qualifiedName: String, value: String)
Link copied to clipboard
external fun setAttributeNode(attr: Attr): Attr?
Link copied to clipboard
external fun setAttributeNodeNS(attr: Attr): Attr?
Link copied to clipboard
external fun setAttributeNS(namespace: String?, qualifiedName: String, value: String)
Link copied to clipboard
abstract external fun setAudioMuted(muted: Boolean)

Set guest page muted.

Link copied to clipboard
external fun setHTML(html: String, options: SetHTMLOptions)
Link copied to clipboard
external fun setHTMLUnsafe(html: String, options: SetHTMLUnsafeOptions)
external fun setHTMLUnsafe(html: TrustedHTML, options: SetHTMLUnsafeOptions)
Link copied to clipboard
external fun setPointerCapture(pointerId: Int)
Link copied to clipboard
abstract external fun setUserAgent(userAgent: String)

Overrides the user agent for the guest page.

Link copied to clipboard
abstract external fun setVisualZoomLevelLimits(minimumLevel: Double, maximumLevel: Double): Promise<Void>

Sets the maximum and minimum pinch-to-zoom level.

Link copied to clipboard
abstract external fun setZoomFactor(factor: Double)

Changes the zoom factor to the specified factor. Zoom factor is zoom percent divided by 100, so 300% = 3.0.

Link copied to clipboard
abstract external fun setZoomLevel(level: Double)

Changes the zoom level to the specified level. The original size is 0 and each increment above or below represents zooming 20% larger or smaller to default limits of 300% and 50% of original size, respectively. The formula for this is scale := 1.2 ^ level.

Link copied to clipboard
abstract external fun showDefinitionForSelection()

Shows pop-up dictionary that searches the selected word on the page.

Link copied to clipboard
external fun showPopover(options: ShowPopoverOptions)
Link copied to clipboard
abstract external fun stop()

Stops any pending navigation.

Link copied to clipboard
abstract external fun stopFindInPage(action: WebviewTagStopFindInPageAction)

Stops any findInPage request for the webview with the provided action.

Link copied to clipboard
external fun toggleAttribute(qualifiedName: String, force: Boolean): Boolean
Link copied to clipboard
external fun togglePopover(options: Boolean): Boolean
Link copied to clipboard
abstract external fun undo()

Executes editing command undo in page.

Link copied to clipboard
abstract external fun unselect()

Executes editing command unselect in page.

Link copied to clipboard
external fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions?): Observable<T>