public class WKWebViewConfiguration extends NSObject implements NSSecureCoding, NSCopying
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
WKWebViewConfiguration(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static WKWebViewConfiguration |
alloc() |
static WKWebViewConfiguration |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowsAirPlayForMediaPlayback()
A Boolean value indicating whether AirPlay is allowed.
|
boolean |
allowsInlineMediaPlayback()
A Boolean value indicating whether HTML5 videos play inline
(YES) or use the native full-screen controller (NO).
|
boolean |
allowsPictureInPictureMediaPlayback()
A Boolean value indicating whether HTML5 videos may play
picture-in-picture.
|
java.lang.String |
applicationNameForUserAgent()
The name of the application as used in the user agent string.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(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.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
long |
dataDetectorTypes()
An enum value indicating the type of data detection desired.
|
static java.lang.String |
debugDescription_static() |
WKWebpagePreferences |
defaultWebpagePreferences()
The set of default webpage preferences to use when loading and rendering content.
|
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
static long |
hash_static() |
boolean |
ignoresViewportScaleLimits()
A Boolean value indicating whether the WKWebView should always allow scaling of the web page, regardless of author intent.
|
WKWebViewConfiguration |
init() |
WKWebViewConfiguration |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
boolean |
limitsNavigationsToAppBoundDomains() |
boolean |
mediaPlaybackAllowsAirPlay()
Deprecated.
|
boolean |
mediaPlaybackRequiresUserAction()
Deprecated.
|
long |
mediaTypesRequiringUserActionForPlayback() |
static WKWebViewConfiguration |
new_objc() |
WKPreferences |
preferences()
The preference settings to be used by the web view.
|
WKProcessPool |
processPool()
The process pool from which to obtain the view's web content
process.
|
boolean |
requiresUserActionForMediaPlayback() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
selectionGranularity()
The level of granularity with which the user can interactively
select content in the web view.
|
void |
setAllowsAirPlayForMediaPlayback(boolean value)
A Boolean value indicating whether AirPlay is allowed.
|
void |
setAllowsInlineMediaPlayback(boolean value)
A Boolean value indicating whether HTML5 videos play inline
(YES) or use the native full-screen controller (NO).
|
void |
setAllowsPictureInPictureMediaPlayback(boolean value)
A Boolean value indicating whether HTML5 videos may play
picture-in-picture.
|
void |
setApplicationNameForUserAgent(java.lang.String value)
The name of the application as used in the user agent string.
|
void |
setDataDetectorTypes(long value)
An enum value indicating the type of data detection desired.
|
void |
setDefaultWebpagePreferences(WKWebpagePreferences value)
The set of default webpage preferences to use when loading and rendering content.
|
void |
setIgnoresViewportScaleLimits(boolean value)
A Boolean value indicating whether the WKWebView should always allow scaling of the web page, regardless of author intent.
|
void |
setLimitsNavigationsToAppBoundDomains(boolean value) |
void |
setMediaPlaybackAllowsAirPlay(boolean value)
Deprecated.
|
void |
setMediaPlaybackRequiresUserAction(boolean value)
Deprecated.
|
void |
setMediaTypesRequiringUserActionForPlayback(long value) |
void |
setPreferences(WKPreferences value)
The preference settings to be used by the web view.
|
void |
setProcessPool(WKProcessPool value)
The process pool from which to obtain the view's web content
process.
|
void |
setRequiresUserActionForMediaPlayback(boolean value) |
void |
setSelectionGranularity(long value)
The level of granularity with which the user can interactively
select content in the web view.
|
void |
setSuppressesIncrementalRendering(boolean value)
A Boolean value indicating whether the web view suppresses
content rendering until it is fully loaded into memory.
|
void |
setUpgradeKnownHostsToHTTPS(boolean value)
A Boolean value indicating whether HTTP requests to servers known to support HTTPS should be automatically upgraded to HTTPS requests.
|
void |
setURLSchemeHandlerForURLScheme(WKURLSchemeHandler urlSchemeHandler,
java.lang.String urlScheme)
Sets the URL scheme handler object for the given URL scheme.
|
void |
setUserContentController(WKUserContentController value)
The user content controller to associate with the web view.
|
static void |
setVersion_static(long aVersion) |
void |
setWebsiteDataStore(WKWebsiteDataStore value)
The website data store to be used by the web view.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
boolean |
suppressesIncrementalRendering()
A Boolean value indicating whether the web view suppresses
content rendering until it is fully loaded into memory.
|
boolean |
upgradeKnownHostsToHTTPS()
A Boolean value indicating whether HTTP requests to servers known to support HTTPS should be automatically upgraded to HTTPS requests.
|
WKURLSchemeHandler |
urlSchemeHandlerForURLScheme(java.lang.String urlScheme)
Returns the currently registered URL scheme handler object for the given URL scheme.
|
WKUserContentController |
userContentController()
The user content controller to associate with the web view.
|
static long |
version_static() |
WKWebsiteDataStore |
websiteDataStore()
The website data store to be used by the web view.
|
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, willChangeValuesAtIndexesForKeyprotected WKWebViewConfiguration(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static WKWebViewConfiguration alloc()
public static WKWebViewConfiguration allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static WKWebViewConfiguration new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public boolean allowsAirPlayForMediaPlayback()
The default value is YES.
public boolean allowsInlineMediaPlayback()
The default value is NO.
public boolean allowsPictureInPictureMediaPlayback()
The default value is YES.
public java.lang.String applicationNameForUserAgent()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic long dataDetectorTypes()
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.
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic boolean ignoresViewportScaleLimits()
This will override the user-scalable property. The default value is NO.
public WKWebViewConfiguration init()
public WKWebViewConfiguration initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCoding@Deprecated public boolean mediaPlaybackAllowsAirPlay()
@Deprecated public boolean mediaPlaybackRequiresUserAction()
public long mediaTypesRequiringUserActionForPlayback()
public WKPreferences preferences()
public WKProcessPool processPool()
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.
public boolean requiresUserActionForMediaPlayback()
public long selectionGranularity()
Possible values are described in WKSelectionGranularity. The default value is WKSelectionGranularityDynamic.
public void setAllowsAirPlayForMediaPlayback(boolean value)
The default value is YES.
public void setAllowsInlineMediaPlayback(boolean value)
The default value is NO.
public void setAllowsPictureInPictureMediaPlayback(boolean value)
The default value is YES.
public void setApplicationNameForUserAgent(java.lang.String value)
public void setDataDetectorTypes(long value)
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.
public void setIgnoresViewportScaleLimits(boolean value)
This will override the user-scalable property. The default value is NO.
@Deprecated public void setMediaPlaybackAllowsAirPlay(boolean value)
@Deprecated public void setMediaPlaybackRequiresUserAction(boolean value)
public void setMediaTypesRequiringUserActionForPlayback(long value)
public void setPreferences(WKPreferences value)
public void setProcessPool(WKProcessPool value)
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.
public void setRequiresUserActionForMediaPlayback(boolean value)
public void setSelectionGranularity(long value)
Possible values are described in WKSelectionGranularity. The default value is WKSelectionGranularityDynamic.
public void setSuppressesIncrementalRendering(boolean value)
The default value is NO.
public void setUserContentController(WKUserContentController value)
public void setWebsiteDataStore(WKWebsiteDataStore value)
public boolean suppressesIncrementalRendering()
The default value is NO.
public WKUserContentController userContentController()
public WKWebsiteDataStore websiteDataStore()
public void setURLSchemeHandlerForURLScheme(WKURLSchemeHandler urlSchemeHandler, java.lang.String urlScheme)
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.
urlSchemeHandler - The object to register.scheme - The URL scheme the object will handle.public WKURLSchemeHandler urlSchemeHandlerForURLScheme(java.lang.String urlScheme)
scheme - The URL scheme to lookup.public WKWebpagePreferences defaultWebpagePreferences()
These default webpage preferences are additionally passed to the navigation delegate in -webView:decidePolicyForNavigationAction:preferences:decisionHandler:.
public void setDefaultWebpagePreferences(WKWebpagePreferences value)
These default webpage preferences are additionally passed to the navigation delegate in -webView:decidePolicyForNavigationAction:preferences:decisionHandler:.
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic boolean limitsNavigationsToAppBoundDomains()
public void setLimitsNavigationsToAppBoundDomains(boolean value)
public void setUpgradeKnownHostsToHTTPS(boolean value)
The default value is YES.
public boolean upgradeKnownHostsToHTTPS()
The default value is YES.