Package apple.webkit
Class WKWebViewConfiguration
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.webkit.WKWebViewConfiguration
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject
public class WKWebViewConfiguration extends NSObject implements NSSecureCoding, NSCopying
A WKWebViewConfiguration object is a collection of properties with which to initialize a web view. [@helps] Contains properties used to configure a @link WKWebView @/link.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWKWebViewConfiguration(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static WKWebViewConfigurationalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanallowsAirPlayForMediaPlayback()A Boolean value indicating whether AirPlay is allowed.booleanallowsInlineMediaPlayback()A Boolean value indicating whether HTML5 videos play inline (YES) or use the native full-screen controller (NO).booleanallowsPictureInPictureMediaPlayback()A Boolean value indicating whether HTML5 videos may play picture-in-picture.java.lang.StringapplicationNameForUserAgent()The name of the application as used in the user agent string.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)longdataDetectorTypes()An enum value indicating the type of data detection desired.static java.lang.StringdebugDescription_static()WKWebpagePreferencesdefaultWebpagePreferences()The set of default webpage preferences to use when loading and rendering content.static java.lang.Stringdescription_static()voidencodeWithCoder(NSCoder coder)static longhash_static()booleanignoresViewportScaleLimits()A Boolean value indicating whether the WKWebView should always allow scaling of the web page, regardless of author intent.WKWebViewConfigurationinit()WKWebViewConfigurationinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)booleanlimitsNavigationsToAppBoundDomains()booleanmediaPlaybackAllowsAirPlay()Deprecated.booleanmediaPlaybackRequiresUserAction()Deprecated.longmediaTypesRequiringUserActionForPlayback()static java.lang.Objectnew_objc()WKPreferencespreferences()The preference settings to be used by the web view.WKProcessPoolprocessPool()The process pool from which to obtain the view's web content process.booleanrequiresUserActionForMediaPlayback()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)longselectionGranularity()The level of granularity with which the user can interactively select content in the web view.voidsetAllowsAirPlayForMediaPlayback(boolean value)A Boolean value indicating whether AirPlay is allowed.voidsetAllowsInlineMediaPlayback(boolean value)A Boolean value indicating whether HTML5 videos play inline (YES) or use the native full-screen controller (NO).voidsetAllowsPictureInPictureMediaPlayback(boolean value)A Boolean value indicating whether HTML5 videos may play picture-in-picture.voidsetApplicationNameForUserAgent(java.lang.String value)The name of the application as used in the user agent string.voidsetDataDetectorTypes(long value)An enum value indicating the type of data detection desired.voidsetDefaultWebpagePreferences(WKWebpagePreferences value)The set of default webpage preferences to use when loading and rendering content.voidsetIgnoresViewportScaleLimits(boolean value)A Boolean value indicating whether the WKWebView should always allow scaling of the web page, regardless of author intent.voidsetLimitsNavigationsToAppBoundDomains(boolean value)voidsetMediaPlaybackAllowsAirPlay(boolean value)Deprecated.voidsetMediaPlaybackRequiresUserAction(boolean value)Deprecated.voidsetMediaTypesRequiringUserActionForPlayback(long value)voidsetPreferences(WKPreferences value)The preference settings to be used by the web view.voidsetProcessPool(WKProcessPool value)The process pool from which to obtain the view's web content process.voidsetRequiresUserActionForMediaPlayback(boolean value)voidsetSelectionGranularity(long value)The level of granularity with which the user can interactively select content in the web view.voidsetSuppressesIncrementalRendering(boolean value)A Boolean value indicating whether the web view suppresses content rendering until it is fully loaded into memory.voidsetURLSchemeHandlerForURLScheme(WKURLSchemeHandler urlSchemeHandler, java.lang.String urlScheme)Sets the URL scheme handler object for the given URL scheme.voidsetUserContentController(WKUserContentController value)The user content controller to associate with the web view.static voidsetVersion_static(long aVersion)voidsetWebsiteDataStore(WKWebsiteDataStore value)The website data store to be used by the web view.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()booleansuppressesIncrementalRendering()A Boolean value indicating whether the web view suppresses content rendering until it is fully loaded into memory.WKURLSchemeHandlerurlSchemeHandlerForURLScheme(java.lang.String urlScheme)Returns the currently registered URL scheme handler object for the given URL scheme.WKUserContentControlleruserContentController()The user content controller to associate with the web view.static longversion_static()WKWebsiteDataStorewebsiteDataStore()The website data store to be used by the web view.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static WKWebViewConfiguration alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static 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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
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()
-
allowsAirPlayForMediaPlayback
public boolean allowsAirPlayForMediaPlayback()
A Boolean value indicating whether AirPlay is allowed. The default value is YES.
-
allowsInlineMediaPlayback
public boolean allowsInlineMediaPlayback()
A Boolean value indicating whether HTML5 videos play inline (YES) or use the native full-screen controller (NO). The default value is NO.
-
allowsPictureInPictureMediaPlayback
public boolean allowsPictureInPictureMediaPlayback()
A Boolean value indicating whether HTML5 videos may play picture-in-picture. The default value is YES.
-
applicationNameForUserAgent
public java.lang.String applicationNameForUserAgent()
The name of the application as used in the user agent string.
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
dataDetectorTypes
public long dataDetectorTypes()
An enum value indicating the type of data detection desired. The default value is WKDataDetectorTypeNone. An example of how this property may affect the content loaded in the WKWebView is that content like 'Visit apple.com on July 4th or call 1 800 555-5545' will be transformed to add links around 'apple.com', 'July 4th' and '1 800 555-5545' if the dataDetectorTypes property is set to WKDataDetectorTypePhoneNumber | WKDataDetectorTypeLink | WKDataDetectorTypeCalendarEvent.
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
ignoresViewportScaleLimits
public boolean ignoresViewportScaleLimits()
A Boolean value indicating whether the WKWebView should always allow scaling of the web page, regardless of author intent. This will override the user-scalable property. The default value is NO.
-
init
public WKWebViewConfiguration init()
-
initWithCoder
public WKWebViewConfiguration initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
mediaPlaybackAllowsAirPlay
@Deprecated public boolean mediaPlaybackAllowsAirPlay()
Deprecated.
-
mediaPlaybackRequiresUserAction
@Deprecated public boolean mediaPlaybackRequiresUserAction()
Deprecated.
-
mediaTypesRequiringUserActionForPlayback
public long mediaTypesRequiringUserActionForPlayback()
-
preferences
public WKPreferences preferences()
The preference settings to be used by the web view.
-
processPool
public WKProcessPool processPool()
The process pool from which to obtain the view's web content process. When a web view is initialized, a new web content process will be created for it from the specified pool, or an existing process in that pool will be used.
-
requiresUserActionForMediaPlayback
public boolean requiresUserActionForMediaPlayback()
-
selectionGranularity
public long selectionGranularity()
The level of granularity with which the user can interactively select content in the web view. Possible values are described in WKSelectionGranularity. The default value is WKSelectionGranularityDynamic.
-
setAllowsAirPlayForMediaPlayback
public void setAllowsAirPlayForMediaPlayback(boolean value)
A Boolean value indicating whether AirPlay is allowed. The default value is YES.
-
setAllowsInlineMediaPlayback
public void setAllowsInlineMediaPlayback(boolean value)
A Boolean value indicating whether HTML5 videos play inline (YES) or use the native full-screen controller (NO). The default value is NO.
-
setAllowsPictureInPictureMediaPlayback
public void setAllowsPictureInPictureMediaPlayback(boolean value)
A Boolean value indicating whether HTML5 videos may play picture-in-picture. The default value is YES.
-
setApplicationNameForUserAgent
public void setApplicationNameForUserAgent(java.lang.String value)
The name of the application as used in the user agent string.
-
setDataDetectorTypes
public void setDataDetectorTypes(long value)
An enum value indicating the type of data detection desired. The default value is WKDataDetectorTypeNone. An example of how this property may affect the content loaded in the WKWebView is that content like 'Visit apple.com on July 4th or call 1 800 555-5545' will be transformed to add links around 'apple.com', 'July 4th' and '1 800 555-5545' if the dataDetectorTypes property is set to WKDataDetectorTypePhoneNumber | WKDataDetectorTypeLink | WKDataDetectorTypeCalendarEvent.
-
setIgnoresViewportScaleLimits
public void setIgnoresViewportScaleLimits(boolean value)
A Boolean value indicating whether the WKWebView should always allow scaling of the web page, regardless of author intent. This will override the user-scalable property. The default value is NO.
-
setMediaPlaybackAllowsAirPlay
@Deprecated public void setMediaPlaybackAllowsAirPlay(boolean value)
Deprecated.
-
setMediaPlaybackRequiresUserAction
@Deprecated public void setMediaPlaybackRequiresUserAction(boolean value)
Deprecated.
-
setMediaTypesRequiringUserActionForPlayback
public void setMediaTypesRequiringUserActionForPlayback(long value)
-
setPreferences
public void setPreferences(WKPreferences value)
The preference settings to be used by the web view.
-
setProcessPool
public void setProcessPool(WKProcessPool value)
The process pool from which to obtain the view's web content process. When a web view is initialized, a new web content process will be created for it from the specified pool, or an existing process in that pool will be used.
-
setRequiresUserActionForMediaPlayback
public void setRequiresUserActionForMediaPlayback(boolean value)
-
setSelectionGranularity
public void setSelectionGranularity(long value)
The level of granularity with which the user can interactively select content in the web view. Possible values are described in WKSelectionGranularity. The default value is WKSelectionGranularityDynamic.
-
setSuppressesIncrementalRendering
public void setSuppressesIncrementalRendering(boolean value)
A Boolean value indicating whether the web view suppresses content rendering until it is fully loaded into memory. The default value is NO.
-
setUserContentController
public void setUserContentController(WKUserContentController value)
The user content controller to associate with the web view.
-
setWebsiteDataStore
public void setWebsiteDataStore(WKWebsiteDataStore value)
The website data store to be used by the web view.
-
suppressesIncrementalRendering
public boolean suppressesIncrementalRendering()
A Boolean value indicating whether the web view suppresses content rendering until it is fully loaded into memory. The default value is NO.
-
userContentController
public WKUserContentController userContentController()
The user content controller to associate with the web view.
-
websiteDataStore
public WKWebsiteDataStore websiteDataStore()
The website data store to be used by the web view.
-
setURLSchemeHandlerForURLScheme
public void setURLSchemeHandlerForURLScheme(WKURLSchemeHandler urlSchemeHandler, java.lang.String urlScheme)
Sets the URL scheme handler object for the given URL scheme. Each URL scheme can only have one URL scheme handler object registered. An exception will be thrown if you try to register an object for a particular URL scheme more than once. URL schemes are case insensitive. e.g. "myprotocol" and "MyProtocol" are equivalent. Valid URL schemes must start with an ASCII letter and can only contain ASCII letters, numbers, the '+' character, the '-' character, and the '.' character. An exception will be thrown if you try to register a URL scheme handler for an invalid URL scheme. An exception will be thrown if you try to register a URL scheme handler for a URL scheme that WebKit handles internally. You can use +[WKWebView handlesURLScheme:] to check the availability of a given URL scheme.- Parameters:
urlSchemeHandler- The object to register.scheme- The URL scheme the object will handle.
-
urlSchemeHandlerForURLScheme
public WKURLSchemeHandler urlSchemeHandlerForURLScheme(java.lang.String urlScheme)
Returns the currently registered URL scheme handler object for the given URL scheme.- Parameters:
scheme- The URL scheme to lookup.
-
defaultWebpagePreferences
public WKWebpagePreferences defaultWebpagePreferences()
The set of default webpage preferences to use when loading and rendering content. These default webpage preferences are additionally passed to the navigation delegate in -webView:decidePolicyForNavigationAction:preferences:decisionHandler:.
-
setDefaultWebpagePreferences
public void setDefaultWebpagePreferences(WKWebpagePreferences value)
The set of default webpage preferences to use when loading and rendering content. These default webpage preferences are additionally passed to the navigation delegate in -webView:decidePolicyForNavigationAction:preferences:decisionHandler:.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis 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:
_supportsSecureCodingin interfaceNSSecureCoding
-
limitsNavigationsToAppBoundDomains
public boolean limitsNavigationsToAppBoundDomains()
-
setLimitsNavigationsToAppBoundDomains
public void setLimitsNavigationsToAppBoundDomains(boolean value)
-
-