(js)
|
open fun addListener(event: String, listener: (event: Event, input: Input) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): WebContents
open fun addListener(event: String, listener: (level: Number, message: String, line: Number, sourceId: String) -> Unit): WebContents
open fun addListener(: String, : (event: Event, params: ContextMenuParams) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, killed: Boolean) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, type: String, image: NativeImage?, scale: Number?, size: Size?, hotspot: Point?) -> Unit): WebContents
open fun addListener(event: String, listener: Function<*>): WebContents
open fun addListener(event: String, listener: (event: Event, webContents: WebContents) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, color: String?) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, errorCode: Number, errorDescription: String, validatedURL: String, isMainFrame: Boolean) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, isMainFrame: Boolean) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, oldURL: String, newURL: String, isMainFrame: Boolean, httpResponseCode: Number, requestMethod: String, referrer: String, headers: Any) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, status: Boolean, newURL: String, originalURL: String, httpResponseCode: Number, requestMethod: String, referrer: String, headers: Any, resourceType: String) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, url: String) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, url: String, isMainFrame: Boolean) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, result: Result) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, request: Request, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, url: String, frameName: String, dynamic, options: Any, additionalFeatures: Array<String>) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, favicons: Array<String>) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, dirtyRect: Rectangle, image: NativeImage) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, name: String, version: String) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, devices: Array<BluetoothDevice>, callback: (deviceId: String) -> Unit) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, url: String, certificateList: Array<Certificate>, callback: (certificate: Certificate) -> Unit) -> Unit): WebContents
open fun addListener(event: String, listener: (event: Event, webPreferences: Any, params: Any) -> Unit): WebContents |
(js)
|
open fun addWorkSpace(path: String): Unit |
(js)
|
open fun beginFrameSubscription(callback: (frameBuffer: Buffer, dirtyRect: Rectangle) -> Unit): Unit
open fun beginFrameSubscription(onlyDirty: Boolean, callback: (frameBuffer: Buffer, dirtyRect: Rectangle) -> Unit): Unit |
(js)
|
open fun canGoBack(): Boolean |
(js)
|
open fun canGoForward(): Boolean |
(js)
|
open fun canGoToOffset(offset: Number): Boolean |
(js)
|
open fun capturePage(callback: (image: NativeImage) -> Unit): Unit
open fun capturePage(rect: Rectangle, callback: (image: NativeImage) -> Unit): Unit |
(js)
|
open fun clearHistory(): Unit |
(js)
|
open fun closeDevTools(): Unit |
(js)
|
open fun copy(): Unit |
(js)
|
open fun copyImageAt(x: Number, y: Number): Unit |
(js)
|
open fun cut(): Unit |
(js)
|
open fun delete(): Unit |
(js)
|
open fun disableDeviceEmulation(): Unit |
(js)
|
open fun downloadURL(url: String): Unit |
(js)
|
open fun enableDeviceEmulation(parameters: Parameters): Unit |
(js)
|
open fun endFrameSubscription(): Unit |
(js)
|
open fun executeJavaScript(code: String, userGesture: Boolean? = definedExternally, callback: ((result: Any) -> Unit)? = definedExternally): Promise<Any> |
(js)
|
open fun findInPage(text: String, options: FindInPageOptions? = definedExternally): Number |
(js)
|
open fun focus(): Unit |
(js)
|
open fun getFrameRate(): Number |
(js)
|
open fun getOSProcessId(): Number |
(js)
|
open fun getPrinters(): Array<PrinterInfo> |
(js)
|
open fun getTitle(): String |
(js)
|
open fun getURL(): String |
(js)
|
open fun getUserAgent(): String |
(js)
|
open fun getWebRTCIPHandlingPolicy(): String |
(js)
|
open fun getZoomFactor(callback: (zoomFactor: Number) -> Unit): Unit |
(js)
|
open fun getZoomLevel(callback: (zoomLevel: Number) -> Unit): Unit |
(js)
|
open fun goBack(): Unit |
(js)
|
open fun goForward(): Unit |
(js)
|
open fun goToIndex(index: Number): Unit |
(js)
|
open fun goToOffset(offset: Number): Unit |
(js)
|
open fun hasServiceWorker(callback: (hasWorker: Boolean) -> Unit): Unit |
(js)
|
open fun insertCSS(css: String): Unit |
(js)
|
open fun insertText(text: String): Unit |
(js)
|
open fun inspectElement(x: Number, y: Number): Unit |
(js)
|
open fun inspectServiceWorker(): Unit |
(js)
|
open fun invalidate(): Unit |
(js)
|
open fun isAudioMuted(): Boolean |
(js)
|
open fun isCrashed(): Boolean |
(js)
|
open fun isDestroyed(): Boolean |
(js)
|
open fun isDevToolsFocused(): Boolean |
(js)
|
open fun isDevToolsOpened(): Boolean |
(js)
|
open fun isFocused(): Boolean |
(js)
|
open fun isLoading(): Boolean |
(js)
|
open fun isLoadingMainFrame(): Boolean |
(js)
|
open fun isOffscreen(): Boolean |
(js)
|
open fun isPainting(): Boolean |
(js)
|
open fun isWaitingForResponse(): Boolean |
(js)
|
open fun loadFile(filePath: String): Unit |
(js)
|
open fun loadURL(url: String, options: LoadURLOptions? = definedExternally): Unit |
(js)
|
open fun on(event: String, listener: (event: Event, input: Input) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): WebContents
open fun on(event: String, listener: (level: Number, message: String, line: Number, sourceId: String) -> Unit): WebContents
open fun on(: String, : (event: Event, params: ContextMenuParams) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, killed: Boolean) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, type: String, image: NativeImage?, scale: Number?, size: Size?, hotspot: Point?) -> Unit): WebContents
open fun on(event: String, listener: Function<*>): WebContents
open fun on(event: String, listener: (event: Event, webContents: WebContents) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, color: String?) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, errorCode: Number, errorDescription: String, validatedURL: String, isMainFrame: Boolean) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, isMainFrame: Boolean) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, oldURL: String, newURL: String, isMainFrame: Boolean, httpResponseCode: Number, requestMethod: String, referrer: String, headers: Any) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, status: Boolean, newURL: String, originalURL: String, httpResponseCode: Number, requestMethod: String, referrer: String, headers: Any, resourceType: String) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, url: String) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, url: String, isMainFrame: Boolean) -> Unit): WebContents
open fun on(event: String, listener: (event: Event) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, result: Result) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, request: Request, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, url: String, frameName: String, dynamic, options: Any, additionalFeatures: Array<String>) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, favicons: Array<String>) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, dirtyRect: Rectangle, image: NativeImage) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, name: String, version: String) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, devices: Array<BluetoothDevice>, callback: (deviceId: String) -> Unit) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, url: String, certificateList: Array<Certificate>, callback: (certificate: Certificate) -> Unit) -> Unit): WebContents
open fun on(event: String, listener: (event: Event, webPreferences: Any, params: Any) -> Unit): WebContents |
(js)
|
open fun once(event: String, listener: (event: Event, input: Input) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): WebContents
open fun once(event: String, listener: (level: Number, message: String, line: Number, sourceId: String) -> Unit): WebContents
open fun once(: String, : (event: Event, params: ContextMenuParams) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, killed: Boolean) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, type: String, image: NativeImage?, scale: Number?, size: Size?, hotspot: Point?) -> Unit): WebContents
open fun once(event: String, listener: Function<*>): WebContents
open fun once(event: String, listener: (event: Event, webContents: WebContents) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, color: String?) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, errorCode: Number, errorDescription: String, validatedURL: String, isMainFrame: Boolean) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, isMainFrame: Boolean) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, oldURL: String, newURL: String, isMainFrame: Boolean, httpResponseCode: Number, requestMethod: String, referrer: String, headers: Any) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, status: Boolean, newURL: String, originalURL: String, httpResponseCode: Number, requestMethod: String, referrer: String, headers: Any, resourceType: String) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, url: String) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, url: String, isMainFrame: Boolean) -> Unit): WebContents
open fun once(event: String, listener: (event: Event) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, result: Result) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, request: Request, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, url: String, frameName: String, dynamic, options: Any, additionalFeatures: Array<String>) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, favicons: Array<String>) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, dirtyRect: Rectangle, image: NativeImage) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, name: String, version: String) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, devices: Array<BluetoothDevice>, callback: (deviceId: String) -> Unit) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, url: String, certificateList: Array<Certificate>, callback: (certificate: Certificate) -> Unit) -> Unit): WebContents
open fun once(event: String, listener: (event: Event, webPreferences: Any, params: Any) -> Unit): WebContents |
(js)
|
open fun openDevTools(options: OpenDevToolsOptions? = definedExternally): Unit |
(js)
|
open fun paste(): Unit |
(js)
|
open fun pasteAndMatchStyle(): Unit |
(js)
|
open fun print(options: PrintOptions? = definedExternally, callback: ((success: Boolean) -> Unit)? = definedExternally): Unit |
(js)
|
open fun printToPDF(options: PrintToPDFOptions, callback: (error: Error, data: Buffer) -> Unit): Unit |
(js)
|
open fun redo(): Unit |
(js)
|
open fun reload(): Unit |
(js)
|
open fun reloadIgnoringCache(): Unit |
(js)
|
open fun removeListener(event: String, listener: (event: Event, input: Input) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, url: String, error: String, certificate: Certificate, callback: (isTrusted: Boolean) -> Unit) -> Unit): WebContents
open fun removeListener(event: String, listener: (level: Number, message: String, line: Number, sourceId: String) -> Unit): WebContents
open fun removeListener(: String, : (event: Event, params: ContextMenuParams) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, killed: Boolean) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, type: String, image: NativeImage?, scale: Number?, size: Size?, hotspot: Point?) -> Unit): WebContents
open fun removeListener(event: String, listener: Function<*>): WebContents
open fun removeListener(event: String, listener: (event: Event, webContents: WebContents) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, color: String?) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, errorCode: Number, errorDescription: String, validatedURL: String, isMainFrame: Boolean) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, isMainFrame: Boolean) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, oldURL: String, newURL: String, isMainFrame: Boolean, httpResponseCode: Number, requestMethod: String, referrer: String, headers: Any) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, status: Boolean, newURL: String, originalURL: String, httpResponseCode: Number, requestMethod: String, referrer: String, headers: Any, resourceType: String) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, url: String) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, url: String, isMainFrame: Boolean) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, result: Result) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, request: Request, authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, url: String, frameName: String, dynamic, options: Any, additionalFeatures: Array<String>) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, favicons: Array<String>) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, dirtyRect: Rectangle, image: NativeImage) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, name: String, version: String) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, devices: Array<BluetoothDevice>, callback: (deviceId: String) -> Unit) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, url: String, certificateList: Array<Certificate>, callback: (certificate: Certificate) -> Unit) -> Unit): WebContents
open fun removeListener(event: String, listener: (event: Event, webPreferences: Any, params: Any) -> Unit): WebContents |
(js)
|
open fun removeWorkSpace(path: String): Unit |
(js)
|
open fun replace(text: String): Unit |
(js)
|
open fun replaceMisspelling(text: String): Unit |
(js)
|
open fun savePage(fullPath: String, saveType: String, callback: (error: Error) -> Unit): Boolean |
(js)
|
open fun selectAll(): Unit |
(js)
|
open fun send(channel: String, vararg args: Any): Unit |
(js)
|
open fun sendInputEvent(event: Event): Unit |
(js)
|
open fun setAudioMuted(muted: Boolean): Unit |
(js)
|
open fun setDevToolsWebContents(devToolsWebContents: WebContents): Unit |
(js)
|
open fun setFrameRate(fps: Number): Unit |
(js)
|
open fun setIgnoreMenuShortcuts(: Boolean): Unit |
(js)
|
open fun setLayoutZoomLevelLimits(minimumLevel: Number, maximumLevel: Number): Unit |
(js)
|
open fun setSize(options: SizeOptions): Unit |
(js)
|
open fun setUserAgent(userAgent: String): Unit |
(js)
|
open fun setVisualZoomLevelLimits(minimumLevel: Number, maximumLevel: Number): Unit |
(js)
|
open fun setWebRTCIPHandlingPolicy(policy: String): Unit |
(js)
|
open fun setZoomFactor(factor: Number): Unit |
(js)
|
open fun setZoomLevel(level: Number): Unit |
(js)
|
open fun showDefinitionForSelection(): Unit |
(js)
|
open fun startDrag(item: Item): Unit |
(js)
|
open fun startPainting(): Unit |
(js)
|
open fun stop(): Unit |
(js)
|
open fun stopFindInPage(action: String): Unit |
(js)
|
open fun stopPainting(): Unit |
(js)
|
open fun toggleDevTools(): Unit |
(js)
|
open fun undo(): Unit |
(js)
|
open fun unregisterServiceWorker(callback: (success: Boolean) -> Unit): Unit |
(js)
|
open fun unselect(): Unit |