add
TypeScriptadd(observer: Implements<WKHTTPCookieStoreObserver> | SDKHandle): Promise<void>Swift declarationfunc add(_ observer: any WKHTTPCookieStoreObserver)class · iOS 11.0+ · SDK 27.1
@MainActor class WKHTTPCookieStoreadd(observer: Implements<WKHTTPCookieStoreObserver> | SDKHandle): Promise<void>Swift declarationfunc add(_ observer: any WKHTTPCookieStoreObserver)delete(cookie: _Foundation_HTTPCookie, completionHandler?: ((() => void)) | null): Promise<void>Swift declarationfunc deleteCookie(_ cookie: HTTPCookie) asyncgetAllCookies(completionHandler: ((arg0: Array<_Foundation_HTTPCookie>) => void)): Promise<void>Swift declarationfunc allCookies() async -> [HTTPCookie]getCookiePolicy(completionHandler: ((arg0: WKHTTPCookieStore_CookiePolicy) => void)): Promise<void>Swift declarationvar cookiePolicy: WKHTTPCookieStore.CookiePolicy { get async }getCookies(url: string, completionHandler: ((arg0: Array<_Foundation_HTTPCookie>) => void)): Promise<void>Swift declarationfunc cookies(for url: URL) async -> [HTTPCookie]remove(observer: Implements<WKHTTPCookieStoreObserver> | SDKHandle): Promise<void>Swift declarationfunc remove(_ observer: any WKHTTPCookieStoreObserver)setCookie(cookie: _Foundation_HTTPCookie, completionHandler?: ((() => void)) | null): Promise<void>Swift declarationfunc setCookie(_ cookie: HTTPCookie) asyncsetCookiePolicy(policy: WKHTTPCookieStore_CookiePolicy, completionHandler?: ((() => void)) | null): Promise<void>Swift declarationfunc setCookiePolicy(_ policy: WKHTTPCookieStore.CookiePolicy) asyncsetCookies(cookies: Array<_Foundation_HTTPCookie>, completionHandler?: ((() => void)) | null): Promise<void>Swift declarationfunc setCookies(_ cookies: [HTTPCookie]) async1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
WKHTTPCookieStore.init()
inherited init: clang: 'init' is unavailable