Package apple.webkit

Class WKHTTPCookieStore

  • All Implemented Interfaces:
    NSObject

    public class WKHTTPCookieStore
    extends NSObject
    A WKHTTPCookieStore object allows managing the HTTP cookies associated with a particular WKWebsiteDataStore. API-Since: 11.0
    • Constructor Detail

      • WKHTTPCookieStore

        protected WKHTTPCookieStore​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addObserver

        public void addObserver​(@NotNull
                                @NotNull WKHTTPCookieStoreObserver observer)
        Adds a WKHTTPCookieStoreObserver object with the cookie store. The observer is not retained by the receiver. It is your responsibility to unregister the observer before it becomes invalid.
        Parameters:
        observer - The observer object to add.
      • allocWithZone

        public static WKHTTPCookieStore allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • deleteCookieCompletionHandler

        public void deleteCookieCompletionHandler​(@NotNull
                                                  @NotNull NSHTTPCookie cookie,
                                                  @Nullable
                                                  @Nullable WKHTTPCookieStore.Block_deleteCookieCompletionHandler completionHandler)
        Delete the specified cookie.
        Parameters:
        completionHandler - A block to invoke once the cookie has been deleted.
      • description_static

        public static java.lang.String description_static()
      • getAllCookies

        public void getAllCookies​(@NotNull
                                  @NotNull WKHTTPCookieStore.Block_getAllCookies completionHandler)
        Fetches all stored cookies.
        Parameters:
        completionHandler - A block to invoke with the fetched cookies.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • removeObserver

        public void removeObserver​(@NotNull
                                   @NotNull WKHTTPCookieStoreObserver observer)
        Removes a WKHTTPCookieStoreObserver object from the cookie store.
        Parameters:
        observer - The observer to remove.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setCookieCompletionHandler

        public void setCookieCompletionHandler​(@NotNull
                                               @NotNull NSHTTPCookie cookie,
                                               @Nullable
                                               @Nullable WKHTTPCookieStore.Block_setCookieCompletionHandler completionHandler)
        Set a cookie.
        Parameters:
        cookie - The cookie to set.
        completionHandler - A block to invoke once the cookie has been stored.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • getCookiePolicy

        public void getCookiePolicy​(@NotNull
                                    @NotNull WKHTTPCookieStore.Block_getCookiePolicy completionHandler)
        Get whether cookies are allowed.
        Parameters:
        completionHandler - A block to invoke with the value of whether cookies are allowed. API-Since: 17.0
      • setCookiePolicyCompletionHandler

        public void setCookiePolicyCompletionHandler​(long policy,
                                                     @Nullable
                                                     @Nullable WKHTTPCookieStore.Block_setCookiePolicyCompletionHandler completionHandler)
        Set whether cookies are allowed.
        Parameters:
        policy - A value indicating whether cookies are allowed. The default value is WKCookiePolicyAllow.
        completionHandler - A block to invoke once the cookie policy has been set. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.