Class WKPreferences

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class WKPreferences
extends NSObject
implements NSSecureCoding
  • Constructor Details

    • WKPreferences

      public WKPreferences()
    • WKPreferences

      protected WKPreferences​(NSObject.Handle h, long handle)
    • WKPreferences

      protected WKPreferences​(NSObject.SkipInit skipInit)
    • WKPreferences

      public WKPreferences​(NSCoder coder)
  • Method Details

    • getMinimumFontSize

      public double getMinimumFontSize()
    • setMinimumFontSize

      public void setMinimumFontSize​(double v)
    • javaScriptCanOpenWindowsAutomatically

      public boolean javaScriptCanOpenWindowsAutomatically()
    • setJavaScriptCanOpenWindowsAutomatically

      public void setJavaScriptCanOpenWindowsAutomatically​(boolean v)
    • isFraudulentWebsiteWarningEnabled

      public boolean isFraudulentWebsiteWarningEnabled()
      Since:
      Available in iOS 13.0 and later.
    • setFraudulentWebsiteWarningEnabled

      public void setFraudulentWebsiteWarningEnabled​(boolean v)
      Since:
      Available in iOS 13.0 and later.
    • isTextInteractionEnabled

      public boolean isTextInteractionEnabled()
      Since:
      Available in iOS 14.5 and later.
    • setTextInteractionEnabled

      public void setTextInteractionEnabled​(boolean v)
      Since:
      Available in iOS 14.5 and later.
    • isSiteSpecificQuirksModeEnabled

      public boolean isSiteSpecificQuirksModeEnabled()
      Since:
      Available in iOS 15.0 and later.
    • setSiteSpecificQuirksModeEnabled

      public void setSiteSpecificQuirksModeEnabled​(boolean v)
      Since:
      Available in iOS 15.0 and later.
    • isElementFullscreenEnabled

      public boolean isElementFullscreenEnabled()
      Since:
      Available in iOS 15.0 and later.
    • setElementFullscreenEnabled

      public void setElementFullscreenEnabled​(boolean v)
      Since:
      Available in iOS 15.0 and later.
    • isJavaScriptEnabled

      @Deprecated public boolean isJavaScriptEnabled()
      Deprecated.
      Deprecated in iOS 14.0. Use WKWebPagePreferences.allowsContentJavaScript to disable content JavaScript on a per-navigation basis
    • setJavaScriptEnabled

      @Deprecated public void setJavaScriptEnabled​(boolean v)
      Deprecated.
      Deprecated in iOS 14.0. Use WKWebPagePreferences.allowsContentJavaScript to disable content JavaScript on a per-navigation basis
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)