kvision / pl.treksoft.kvision.electron / WebFrame

WebFrame

(js) interface WebFrame : EventEmitter

Functions

(js)

clearCache

abstract fun clearCache(): Unit
(js)

executeJavaScript

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

executeJavaScriptInIsolatedWorld

abstract fun executeJavaScriptInIsolatedWorld(worldId: Number, scripts: Array<WebSource>, userGesture: Boolean? = definedExternally, callback: ((result: Any) -> Unit)? = definedExternally): Unit
(js)

getResourceUsage

abstract fun getResourceUsage(): ResourceUsage
(js)

getZoomFactor

abstract fun getZoomFactor(): Number
(js)

getZoomLevel

abstract fun getZoomLevel(): Number
(js)

insertText

abstract fun insertText(text: String): Unit
(js)

registerURLSchemeAsBypassingCSP

abstract fun registerURLSchemeAsBypassingCSP(scheme: String): Unit
(js)

registerURLSchemeAsPrivileged

abstract fun registerURLSchemeAsPrivileged(scheme: String, options: RegisterURLSchemeAsPrivilegedOptions? = definedExternally): Unit
(js)

registerURLSchemeAsSecure

abstract fun registerURLSchemeAsSecure(scheme: String): Unit
(js)

setIsolatedWorldContentSecurityPolicy

abstract fun setIsolatedWorldContentSecurityPolicy(worldId: Number, csp: String): Unit
(js)

setIsolatedWorldHumanReadableName

abstract fun setIsolatedWorldHumanReadableName(worldId: Number, name: String): Unit
(js)

setIsolatedWorldSecurityOrigin

abstract fun setIsolatedWorldSecurityOrigin(worldId: Number, securityOrigin: String): Unit
(js)

setLayoutZoomLevelLimits

abstract fun setLayoutZoomLevelLimits(minimumLevel: Number, maximumLevel: Number): Unit
(js)

setSpellCheckProvider

abstract fun setSpellCheckProvider(language: String, autoCorrectWord: Boolean, provider: Provider): Unit
(js)

setVisualZoomLevelLimits

abstract fun setVisualZoomLevelLimits(minimumLevel: Number, maximumLevel: Number): Unit
(js)

setZoomFactor

abstract fun setZoomFactor(factor: Number): Unit
(js)

setZoomLevel

abstract fun setZoomLevel(level: Number): Unit