Class

WKWebsiteDataStore

A WKWebsiteDataStore object represents various types of data used by a chosen website. Data types include cookies, disk and memory caches, and persistent data such as WebSQL, IndexedDB databases, and local storage.

Declaration

@interface WKWebsiteDataStore : NSObject

Topics

Retrieving a Data Store

+ defaultDataStore

Returns the default data store.

+ nonPersistentDataStore

Returns a new nonpersistent data store.

Inspecting Data Store Properties

persistent

A Boolean value that specifies whether the data store is persistent.

Retrieving a Cookie Store

httpCookieStore

Returns a cookie store with the HTTP cookies in this website data store.

WKHTTPCookieStore

An object that manages the HTTP cookies associated with a particular WKWebsiteDataStore.

Retrieving Specific Types of Data

- fetchDataRecordsOfTypes:completionHandler:

Fetches data records containing the given website data types.

+ allWebsiteDataTypes

Returns a set of all the available data types.

Removing Specific Types of Data

- removeDataOfTypes:forDataRecords:completionHandler:

Removes the specified types of website data from the given data records.

- removeDataOfTypes:modifiedSince:completionHandler:

Removes the specified types of data if the data was changed since the given date.

Relationships

Inherits From

Conforms To

See Also

Website Data

WKWebsiteDataRecord

A WKWebsiteDataRecord object represents website data grouped by the originating URL’s domain name and suffix.