Contents

getCookiePolicy(_:)

Returns a cookie policy that indicates whether the cookie store allows cookie storage.

Declaration

func getCookiePolicy(_ completionHandler: @escaping @MainActor @Sendable (WKHTTPCookieStore.CookiePolicy) -> Void)
var cookiePolicy: WKHTTPCookieStore.CookiePolicy { get async }

Parameters

  • completionHandler:

    The completion handler block to execute asynchronously with the cookie policy. This block has no return value, and takes the following parameter:

    cookiePolicy

    A Cookiepolicy case that indicates whether the cookie store allows cookie storage.

See Also

Permitting cookie storage