kvision / pl.treksoft.kvision.electron / Session

Session

(js) open class Session : EventEmitter

Constructors

(js)

<init>

Session()

Properties

(js)

cookies

open var cookies: Cookies
(js)

protocol

open var protocol: Protocol
(js)

webRequest

open var webRequest: WebRequest

Functions

(js)

addListener

open fun addListener(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session
(js)

allowNTLMCredentialsForDomains

open fun allowNTLMCredentialsForDomains(domains: String): Unit
(js)

clearAuthCache

open fun clearAuthCache(options: RemovePassword, callback: Function<*>? = definedExternally): Unit
open fun clearAuthCache(options: RemoveClientCertificate, callback: Function<*>? = definedExternally): Unit
(js)

clearCache

open fun clearCache(callback: Function<*>): Unit
(js)

clearHostResolverCache

open fun clearHostResolverCache(callback: Function<*>? = definedExternally): Unit
(js)

clearStorageData

open fun clearStorageData(options: ClearStorageDataOptions? = definedExternally, callback: Function<*>? = definedExternally): Unit
(js)

createInterruptedDownload

open fun createInterruptedDownload(options: CreateInterruptedDownloadOptions): Unit
(js)

disableNetworkEmulation

open fun disableNetworkEmulation(): Unit
(js)

enableNetworkEmulation

open fun enableNetworkEmulation(options: EnableNetworkEmulationOptions): Unit
(js)

flushStorageData

open fun flushStorageData(): Unit
(js)

getBlobData

open fun getBlobData(identifier: String, callback: (result: Buffer) -> Unit): Unit
(js)

getCacheSize

open fun getCacheSize(callback: (size: Number) -> Unit): Unit
(js)

getPreloads

open fun getPreloads(): Array<String>
(js)

getUserAgent

open fun getUserAgent(): String
(js)

on

open fun on(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session
(js)

once

open fun once(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session
(js)

removeListener

open fun removeListener(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session
(js)

resolveProxy

open fun resolveProxy(url: String, callback: (proxy: String) -> Unit): Unit
(js)

setCertificateVerifyProc

open fun setCertificateVerifyProc(proc: (request: CertificateVerifyProcRequest, callback: (verificationResult: Number) -> Unit) -> Unit): Unit
(js)

setDownloadPath

open fun setDownloadPath(path: String): Unit
(js)

setPermissionRequestHandler

open fun setPermissionRequestHandler(handler: (webContents: WebContents, permission: String, callback: (permissionGranted: Boolean) -> Unit, details: PermissionRequestHandlerDetails) -> Unit?): Unit
(js)

setPreloads

open fun setPreloads(preloads: Array<String>): Unit
(js)

setProxy

open fun setProxy(config: Config, callback: Function<*>): Unit
(js)

setUserAgent

open fun setUserAgent(userAgent: String, acceptLanguages: String? = definedExternally): Unit

Companion Object Properties

(js)

defaultSession

var defaultSession: Session

Companion Object Functions

(js)

fromPartition

fun fromPartition(partition: String, options: FromPartitionOptions? = definedExternally): Session