NetworkSession

constructor()

Creates a new #WebKitNetworkSession with an ephemeral #WebKitWebsiteDataManager.

Return

a new ephemeral #WebKitNetworkSession.

Since

2.40


constructor(dataDirectory: String? = null, cacheDirectory: String? = null)

Creates a new #WebKitNetworkSession with a persistent #WebKitWebsiteDataManager. The parameters @data_directory and @cache_directory will be used as construct properties of the #WebKitWebsiteDataManager of the network session. Note that if null is passed, the default directory will be passed to #WebKitWebsiteDataManager so that webkit_website_data_manager_get_base_data_directory() and webkit_website_data_manager_get_base_cache_directory() always return a value for non ephemeral sessions.

It must be passed as construct parameter of a #WebKitWebView.

Return

the newly created #WebKitNetworkSession

Since

2.40

Parameters

dataDirectory

a base directory for data, or null

cacheDirectory

a base directory for caches, or null


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)