Type Method


Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data.


class func resourceValues(forKeys keys: [URLResourceKey], fromBookmarkData bookmarkData: Data) -> [URLResourceKey : Any]?



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.


The bookmark data from which you want to retrieve resource values.

Return Value

A dictionary of the requested resource values contained in bookmarkData.

See Also

Related Symbols


Keys that apply to file system URLs.

Volume Resource Keys

Resource keys that apply to volumes.

File Property Keys

Keys that apply to properties of files.

Ubiquitous Item Resource Keys

Keys that describe the iCloud storage state of a file.