Package apple.webkit

Class WKPreferences

  • All Implemented Interfaces:
    NSCoding, NSSecureCoding, NSObject

    public class WKPreferences
    extends NSObject
    implements NSSecureCoding
    A WKPreferences object encapsulates the preference settings for a web view. The preferences object associated with a web view is specified by its web view configuration. API-Since: 8.0
    • Constructor Detail

      • WKPreferences

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static WKPreferences 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()
      • description_static

        public static java.lang.String description_static()
      • 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)
      • resolveClassMethod

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

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • 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()
      • javaScriptCanOpenWindowsAutomatically

        public boolean javaScriptCanOpenWindowsAutomatically()
        A Boolean value indicating whether JavaScript can open windows without user interaction. The default value is NO in iOS and YES in OS X.
      • javaScriptEnabled

        @Deprecated
        public boolean javaScriptEnabled()
        Deprecated.
        API-Since: 8.0 Deprecated-Since: 14.0 Deprecated-Message: Use WKWebpagePreferences.allowsContentJavaScript to disable content JavaScript on a per-navigation basis
      • minimumFontSize

        public double minimumFontSize()
        The minimum font size in points. The default value is 0.
      • setJavaScriptCanOpenWindowsAutomatically

        public void setJavaScriptCanOpenWindowsAutomatically​(boolean value)
        A Boolean value indicating whether JavaScript can open windows without user interaction. The default value is NO in iOS and YES in OS X.
      • setJavaScriptEnabled

        @Deprecated
        public void setJavaScriptEnabled​(boolean value)
        Deprecated.
        API-Since: 8.0 Deprecated-Since: 14.0 Deprecated-Message: Use WKWebpagePreferences.allowsContentJavaScript to disable content JavaScript on a per-navigation basis
      • setMinimumFontSize

        public void setMinimumFontSize​(double value)
        The minimum font size in points. The default value is 0.
      • isFraudulentWebsiteWarningEnabled

        public boolean isFraudulentWebsiteWarningEnabled()
        A Boolean value indicating whether warnings should be shown for suspected fraudulent content such as phishing or malware. The default value is YES. API-Since: 13.0
      • setFraudulentWebsiteWarningEnabled

        public void setFraudulentWebsiteWarningEnabled​(boolean value)
        A Boolean value indicating whether warnings should be shown for suspected fraudulent content such as phishing or malware. The default value is YES. API-Since: 13.0
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • isTextInteractionEnabled

        public boolean isTextInteractionEnabled()
        A Boolean value indicating whether text interaction is disabled. API-Since: 14.5
      • setTextInteractionEnabled

        public void setTextInteractionEnabled​(boolean value)
        A Boolean value indicating whether text interaction is disabled. API-Since: 14.5
      • isElementFullscreenEnabled

        public boolean isElementFullscreenEnabled()
        A Boolean value indicating whether Fullscreen API is enabled. The default value is NO. We can set it to YES to enable support for the fullscreen API. API-Since: 15.4
      • isSiteSpecificQuirksModeEnabled

        public boolean isSiteSpecificQuirksModeEnabled()
        A Boolean value indicating whether WebKit will apply built-in workarounds (quirks) to improve compatibility with certain known websites. You can disable site-specific quirks to help test your website without these workarounds. Enabled by default. API-Since: 15.4
      • setElementFullscreenEnabled

        public void setElementFullscreenEnabled​(boolean value)
        A Boolean value indicating whether Fullscreen API is enabled. The default value is NO. We can set it to YES to enable support for the fullscreen API. API-Since: 15.4
      • setSiteSpecificQuirksModeEnabled

        public void setSiteSpecificQuirksModeEnabled​(boolean value)
        A Boolean value indicating whether WebKit will apply built-in workarounds (quirks) to improve compatibility with certain known websites. You can disable site-specific quirks to help test your website without these workarounds. Enabled by default. API-Since: 15.4
      • inactiveSchedulingPolicy

        public long inactiveSchedulingPolicy()
        Specify the scheduling policy for the web view when it is inactive and detached from the view hierarchy. Web views are not considered idle when playing media or loading web pages. A suspended web view will pause JavaScript execution and page layout. API-Since: 17.0
      • setInactiveSchedulingPolicy

        public void setInactiveSchedulingPolicy​(long value)
        Specify the scheduling policy for the web view when it is inactive and detached from the view hierarchy. Web views are not considered idle when playing media or loading web pages. A suspended web view will pause JavaScript execution and page layout. API-Since: 17.0
      • setShouldPrintBackgrounds

        public void setShouldPrintBackgrounds​(boolean value)
        A Boolean value indicating whether the web view should include backgrounds when printing. The default value is `NO`. API-Since: 16.4
      • shouldPrintBackgrounds

        public boolean shouldPrintBackgrounds()
        A Boolean value indicating whether the web view should include backgrounds when printing. The default value is `NO`. API-Since: 16.4
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.