kvision / pl.treksoft.kvision.electron / WebviewTag

WebviewTag

external interface WebviewTag

Properties

allowpopups

open var allowpopups: String?

autosize

open var autosize: String?

blinkfeatures

open var blinkfeatures: String?

disableblinkfeatures

open var disableblinkfeatures: String?

disableguestresize

open var disableguestresize: String?

disablewebsecurity

open var disablewebsecurity: String?

guestinstance

open var guestinstance: String?

httpreferrer

open var httpreferrer: String?

nodeintegration

open var nodeintegration: String?

partition

open var partition: String?

plugins

open var plugins: String?

preload

open var preload: String?

src

open var src: String?

useragent

open var useragent: String?

webpreferences

open var webpreferences: String?

Functions

addEventListener

abstract fun addEventListener(event: String, listener: (event: LoadCommitEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: DidFailLoadEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: DidFrameFinishLoadEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: DidGetResponseDetailsEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: DidGetRedirectRequestEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: PageTitleUpdatedEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: PageFaviconUpdatedEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: ConsoleMessageEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: FoundInPageEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: NewWindowEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: WillNavigateEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: DidNavigateEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: DidNavigateInPageEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: IpcMessageEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: PluginCrashedEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: DidChangeThemeColorEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: UpdateTargetUrlEvent) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun addEventListener(event: String, listener: (event: Event) -> Unit, useCapture: Boolean? = definedExternally): WebviewTag
abstract fun <K> addEventListener(type: K, listener: (<ERROR CLASS>, ev: Any?) -> Any, useCapture: Boolean? = definedExternally): Unit
abstract fun addEventListener(type: String, listener: EventListener, useCapture: Boolean? = definedExternally): Unit
abstract fun addEventListener(type: String, listener: EventListenerObject, useCapture: Boolean? = definedExternally): Unit

canGoBack

abstract fun canGoBack(): Boolean

canGoForward

abstract fun canGoForward(): Boolean

canGoToOffset

abstract fun canGoToOffset(offset: Number): Boolean

capturePage

abstract fun capturePage(callback: (image: NativeImage) -> Unit): Unit
abstract fun capturePage(rect: Rectangle, callback: (image: NativeImage) -> Unit): Unit

clearHistory

abstract fun clearHistory(): Unit

closeDevTools

abstract fun closeDevTools(): Unit

copy

abstract fun copy(): Unit

cut

abstract fun cut(): Unit

delete

abstract fun delete(): Unit

executeJavaScript

abstract fun executeJavaScript(code: String, userGesture: Boolean? = definedExternally, callback: ((result: Any) -> Unit)? = definedExternally): Unit

findInPage

abstract fun findInPage(text: String, options: FindInPageOptions? = definedExternally): Number

getTitle

abstract fun getTitle(): String

getURL

abstract fun getURL(): String

getUserAgent

abstract fun getUserAgent(): String

getWebContents

abstract fun getWebContents(): WebContents

goBack

abstract fun goBack(): Unit

goForward

abstract fun goForward(): Unit

goToIndex

abstract fun goToIndex(index: Number): Unit

goToOffset

abstract fun goToOffset(offset: Number): Unit

insertCSS

abstract fun insertCSS(css: String): Unit

insertText

abstract fun insertText(text: String): Unit

inspectElement

abstract fun inspectElement(x: Number, y: Number): Unit

inspectServiceWorker

abstract fun inspectServiceWorker(): Unit

isAudioMuted

abstract fun isAudioMuted(): Boolean

isCrashed

abstract fun isCrashed(): Boolean

isDevToolsFocused

abstract fun isDevToolsFocused(): Boolean

isDevToolsOpened

abstract fun isDevToolsOpened(): Boolean

isLoading

abstract fun isLoading(): Boolean

isWaitingForResponse

abstract fun isWaitingForResponse(): Boolean

loadURL

abstract fun loadURL(url: String, options: LoadURLOptions? = definedExternally): Unit

openDevTools

abstract fun openDevTools(): Unit

paste

abstract fun paste(): Unit

pasteAndMatchStyle

abstract fun pasteAndMatchStyle(): Unit

print

abstract fun print(options: PrintOptions? = definedExternally): Unit

printToPDF

abstract fun printToPDF(options: PrintToPDFOptions, callback: (Error, <ERROR CLASS>) -> Unit): Unit

redo

abstract fun redo(): Unit

reload

abstract fun reload(): Unit

reloadIgnoringCache

abstract fun reloadIgnoringCache(): Unit

removeEventListener

abstract fun removeEventListener(event: String, listener: (event: LoadCommitEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: DidFailLoadEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: DidFrameFinishLoadEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: DidGetResponseDetailsEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: DidGetRedirectRequestEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: PageTitleUpdatedEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: PageFaviconUpdatedEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: ConsoleMessageEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: FoundInPageEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: NewWindowEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: WillNavigateEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: DidNavigateEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: DidNavigateInPageEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: IpcMessageEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: PluginCrashedEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: DidChangeThemeColorEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: UpdateTargetUrlEvent) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun removeEventListener(event: String, listener: (event: Event) -> Unit): WebviewTag
abstract fun <K> removeEventListener(type: K, listener: (<ERROR CLASS>, ev: Any?) -> Any, useCapture: Boolean? = definedExternally): Unit
abstract fun removeEventListener(type: String, listener: EventListener, useCapture: Boolean? = definedExternally): Unit
abstract fun removeEventListener(type: String, listener: EventListenerObject, useCapture: Boolean? = definedExternally): Unit

replace

abstract fun replace(text: String): Unit

replaceMisspelling

abstract fun replaceMisspelling(text: String): Unit

selectAll

abstract fun selectAll(): Unit

send

abstract fun send(channel: String, vararg args: Any): Unit

sendInputEvent

abstract fun sendInputEvent(event: Any): Unit

setAudioMuted

abstract fun setAudioMuted(muted: Boolean): Unit

setUserAgent

abstract fun setUserAgent(userAgent: String): Unit

setZoomFactor

abstract fun setZoomFactor(factor: Number): Unit

setZoomLevel

abstract fun setZoomLevel(level: Number): Unit

showDefinitionForSelection

abstract fun showDefinitionForSelection(): Unit

stop

abstract fun stop(): Unit

stopFindInPage

abstract fun stopFindInPage(action: String): Unit
abstract fun stopFindInPage(action: String): Unit
abstract fun stopFindInPage(action: String): Unit

undo

abstract fun undo(): Unit

unselect

abstract fun unselect(): Unit

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.