Session
Types
Functions
add Listener
Link copied to clipboard
open fun addListener(event: String, listener: (event: Event, languageCode: String) -> Unit): Session
Content copied to clipboard
open fun addListener(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session
Content copied to clipboard
open fun addListener(event: String, listener: (event: Event, preconnectUrl: String, allowCredentials: Boolean) -> Unit): Session
Content copied to clipboard
open fun addListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
Content copied to clipboard
open fun addListener(event: String, listener: (args: Any) -> Unit): EventEmitter
Content copied to clipboard
add Word To Spell Checker Dictionary
Link copied to clipboard
allow NTLMCredentials For Domains
Link copied to clipboard
clear Auth Cache
Link copied to clipboard
clear Cache
Link copied to clipboard
clear Host Resolver Cache
Link copied to clipboard
clear Storage Data
Link copied to clipboard
open fun clearStorageData(options: ClearStorageDataOptions = definedExternally): Promise<Unit>
Content copied to clipboard
create Interrupted Download
Link copied to clipboard
open fun createInterruptedDownload(options: CreateInterruptedDownloadOptions)
Content copied to clipboard
disable Network Emulation
Link copied to clipboard
open fun disableNetworkEmulation()
Content copied to clipboard
download URL
Link copied to clipboard
enable Network Emulation
Link copied to clipboard
event Names
Link copied to clipboard
flush Storage Data
Link copied to clipboard
open fun flushStorageData()
Content copied to clipboard
get Blob Data
Link copied to clipboard
get Cache Size
Link copied to clipboard
get Max Listeners
Link copied to clipboard
get Preloads
Link copied to clipboard
get Spell Checker Languages
Link copied to clipboard
get User Agent
Link copied to clipboard
listener Count
Link copied to clipboard
on
Link copied to clipboard
open fun on(event: String, listener: (event: Event, languageCode: String) -> Unit): Session
Content copied to clipboard
open fun on(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session
Content copied to clipboard
once
Link copied to clipboard
open fun once(event: String, listener: (event: Event, languageCode: String) -> Unit): Session
Content copied to clipboard
open fun once(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session
Content copied to clipboard
open fun once(event: String, listener: (event: Event, preconnectUrl: String, allowCredentials: Boolean) -> Unit): Session
Content copied to clipboard
open fun once(event: String, listener: (args: Any) -> Unit): EventEmitter
Content copied to clipboard
preconnect
Link copied to clipboard
prepend Listener
Link copied to clipboard
open fun prependListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
Content copied to clipboard
open fun prependListener(event: String, listener: (args: Any) -> Unit): EventEmitter
Content copied to clipboard
prepend Once Listener
Link copied to clipboard
open fun prependOnceListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
Content copied to clipboard
open fun prependOnceListener(event: String, listener: (args: Any) -> Unit): EventEmitter
Content copied to clipboard
raw Listeners
Link copied to clipboard
remove All Listeners
Link copied to clipboard
open fun removeAllListeners(event: Any = definedExternally): EventEmitter
Content copied to clipboard
open fun removeAllListeners(event: String = definedExternally): EventEmitter
Content copied to clipboard
remove Listener
Link copied to clipboard
open fun removeListener(event: String, listener: (event: Event, languageCode: String) -> Unit): Session
Content copied to clipboard
open fun removeListener(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session
Content copied to clipboard
open fun removeListener(event: String, listener: (event: Event, preconnectUrl: String, allowCredentials: Boolean) -> Unit): Session
Content copied to clipboard
open fun removeListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
Content copied to clipboard
open fun removeListener(event: String, listener: (args: Any) -> Unit): EventEmitter
Content copied to clipboard
resolve Proxy
Link copied to clipboard
set Certificate Verify Proc
Link copied to clipboard
open fun setCertificateVerifyProc(proc: (request: CertificateVerifyProcProcRequest, callback: (verificationResult: Number) -> Unit) -> Unit?)
Content copied to clipboard
set Download Path
Link copied to clipboard
set Max Listeners
Link copied to clipboard
set Permission Check Handler
Link copied to clipboard
open fun setPermissionCheckHandler(handler: (webContents: WebContents, permission: String, requestingOrigin: String, details: PermissionCheckHandlerHandlerDetails) -> Boolean?)
Content copied to clipboard
set Permission Request Handler
Link copied to clipboard
open fun setPermissionRequestHandler(handler: (webContents: WebContents, permission: String, callback: (permissionGranted: Boolean) -> Unit, details: PermissionRequestHandlerHandlerDetails) -> Unit?)
Content copied to clipboard
set Preloads
Link copied to clipboard
set Spell Checker Dictionary Download URL
Link copied to clipboard
set Spell Checker Languages
Link copied to clipboard
set User Agent
Link copied to clipboard
open fun setUserAgent(userAgent: String, acceptLanguages: String = definedExternally)
Content copied to clipboard