WebsiteDataManager


Object Hierarchy:

WebKit.WebsiteDataManager WebKit.WebsiteDataManager WebKit.WebsiteDataManager GLib.Object GLib.Object GLib.Object->WebKit.WebsiteDataManager

Description:

[ CCode ( type_id = "webkit_website_data_manager_get_type ()" ) ]
[ Version ( since = "2.10" ) ]
public class WebsiteDataManager : Object

Manages data stored locally by web sites.

WebKitWebsiteDataManager allows you to manage the data that websites can store in the client file system like databases or caches. You can use WebKitWebsiteDataManager to configure the local directories where the Website data will be stored, by creating a new manager with WebsiteDataManager passing the values you want to set. You can set all the possible configuration values or only some of them, a default value will be used automatically for the configuration options not provided. base_data_directory and base_cache_directory are two special properties that can be used to set a common base directory for all Website data and caches. It's possible to provide both, a base directory and a specific value, but in that case, the specific value takes precedence over the base directory. The newly created WebKitWebsiteDataManager must be passed as a construct property to a WebContext, you can use WebContext.with_website_data_manager to create a new WebContext with a WebKitWebsiteDataManager. In case you don't want to set any specific configuration, you don't need to create a WebKitWebsiteDataManager, the WebContext will create a WebKitWebsiteDataManager with the default configuration. To get the WebKitWebsiteDataManager of a WebContext you can use get_website_data_manager.

A WebKitWebsiteDataManager can also be ephemeral and then all the directories configuration is not needed because website data will never persist. You can create an ephemeral WebKitWebsiteDataManager with WebsiteDataManager.ephemeral. Then you can pass an ephemeral WebKitWebsiteDataManager to a WebContext to make it ephemeral or use WebContext.ephemeral and the WebKitWebsiteDataManager will be automatically created by the WebContext.

WebKitWebsiteDataManager can also be used to fetch websites data, remove data stored by particular websites, or clear data for all websites modified since a given period of time.


Namespace: WebKit
Package: webkit2gtk-4.0

Content:

Properties:

Static methods:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org