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