(js)
|
open fun addListener(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session |
(js)
|
open fun allowNTLMCredentialsForDomains(domains: String): Unit |
(js)
|
open fun clearAuthCache(options: RemovePassword, callback: Function<*>? = definedExternally): Unit
open fun clearAuthCache(options: RemoveClientCertificate, callback: Function<*>? = definedExternally): Unit |
(js)
|
open fun clearCache(callback: Function<*>): Unit |
(js)
|
open fun clearHostResolverCache(callback: Function<*>? = definedExternally): Unit |
(js)
|
open fun clearStorageData(options: ClearStorageDataOptions? = definedExternally, callback: Function<*>? = definedExternally): Unit |
(js)
|
open fun createInterruptedDownload(options: CreateInterruptedDownloadOptions): Unit |
(js)
|
open fun disableNetworkEmulation(): Unit |
(js)
|
open fun enableNetworkEmulation(options: EnableNetworkEmulationOptions): Unit |
(js)
|
open fun flushStorageData(): Unit |
(js)
|
open fun getBlobData(identifier: String, callback: (result: Buffer) -> Unit): Unit |
(js)
|
open fun getCacheSize(callback: (size: Number) -> Unit): Unit |
(js)
|
open fun getPreloads(): Array<String> |
(js)
|
open fun getUserAgent(): String |
(js)
|
open fun on(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session |
(js)
|
open fun once(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session |
(js)
|
open fun removeListener(event: String, listener: (event: Event, item: DownloadItem, webContents: WebContents) -> Unit): Session |
(js)
|
open fun resolveProxy(url: String, callback: (proxy: String) -> Unit): Unit |
(js)
|
open fun setCertificateVerifyProc(proc: (request: CertificateVerifyProcRequest, callback: (verificationResult: Number) -> Unit) -> Unit): Unit |
(js)
|
open fun setDownloadPath(path: String): Unit |
(js)
|
open fun setPermissionRequestHandler(handler: (webContents: WebContents, permission: String, callback: (permissionGranted: Boolean) -> Unit, details: PermissionRequestHandlerDetails) -> Unit?): Unit |
(js)
|
open fun setPreloads(preloads: Array<String>): Unit |
(js)
|
open fun setProxy(config: Config, callback: Function<*>): Unit |
(js)
|
open fun setUserAgent(userAgent: String, acceptLanguages: String? = definedExternally): Unit |