resourceValues(forKeys:fromBookmarkData:)
Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data.
Declaration
class func resourceValues(forKeys keys: [URLResourceKey], fromBookmarkData bookmarkData: Data) -> [URLResourceKey : Any]?Parameters
- keys:
An array of names of URL resource properties. In addition to the standard, system-defined resource properties, you can also request any custom properties that you provided when you created the bookmark. See the Bookmarkdata(options:includingresourcevaluesforkeys:relativeto:) method for details.
- bookmarkData:
The bookmark data from which you want to retrieve resource values.
Return Value
A dictionary of the requested resource values contained in bookmarkData.