Instance Method

fetchDataRecords(ofTypes:completionHandler:)

Fetches data records containing the given website data types.

Declaration

func fetchDataRecords(ofTypes dataTypes: Set<String>, completionHandler: @escaping ([WKWebsiteDataRecord]) -> Void)

Parameters

dataTypes

The website data types to be fetched.

completionHandler

The block to be invoked after the data records are fetched.

See Also

Retrieving Specific Types of Data

class func allWebsiteDataTypes() -> Set<String>

Returns a set of all the available data types.