Fetches cookies relevant to the specified task and passes them to the completion handler.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The task performing a request. The cookie storage can use the URL and other properties of this task’s request to determine which cookies to fetch.
A completion handler that receives an array of cookies as its argument.
The cookie storage’s cookies.
Returns all the cookie storage’s cookies that are sent to a specified URL.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software