Instance Method

bookmarkData(options:includingResourceValuesForKeys:relativeTo:)

Returns bookmark data for the URL, created with specified options and resource values.

Declaration

func bookmarkData(options: URL.BookmarkCreationOptions = [], includingResourceValuesForKeys keys: Set<URLResourceKey>? = nil, relativeTo url: URL? = nil) throws -> Data

See Also

Creating Bookmarks

static func bookmarkData(withContentsOf: URL) -> Data

Initializes and returns bookmark data derived from an alias file pointed to by a specified URL.

static func writeBookmarkData(Data, to: URL)

Creates an alias file on disk at a specified location with specified bookmark data.

static func resourceValues(forKeys: Set<URLResourceKey>, fromBookmarkData: Data) -> URLResourceValues?

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

typealias URL.BookmarkCreationOptions

An alias for bookmark creation options.

struct NSURL.BookmarkCreationOptions

Options used when creating bookmark data.