public class WKUserContentController extends NSObject implements NSSecureCoding
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
WKUserContentController(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() |
void |
addContentRuleList(WKContentRuleList contentRuleList)
Adds a content rule list.
|
void |
addScriptMessageHandlerContentWorldName(WKScriptMessageHandler scriptMessageHandler,
WKContentWorld world,
java.lang.String name)
Adds a script message handler.
|
void |
addScriptMessageHandlerName(WKScriptMessageHandler scriptMessageHandler,
java.lang.String name)
Adds a script message handler to the main world used by page content itself.
|
void |
addScriptMessageHandlerWithReplyContentWorldName(WKScriptMessageHandlerWithReply scriptMessageHandlerWithReply,
WKContentWorld contentWorld,
java.lang.String name)
Adds a script message handler.
|
void |
addUserScript(WKUserScript userScript)
Adds a user script.
|
static WKUserContentController |
alloc() |
static WKUserContentController |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
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() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
static long |
hash_static() |
WKUserContentController |
init() |
WKUserContentController |
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) |
static WKUserContentController |
new_objc() |
void |
removeAllContentRuleLists()
Removes all associated content rule lists.
|
void |
removeAllScriptMessageHandlers()
Removes all associated script message handlers.
|
void |
removeAllScriptMessageHandlersFromContentWorld(WKContentWorld contentWorld)
Removes all script message handlers from a given WKContentWorld.
|
void |
removeAllUserScripts()
Removes all associated user scripts.
|
void |
removeContentRuleList(WKContentRuleList contentRuleList)
Removes a content rule list.
|
void |
removeScriptMessageHandlerForName(java.lang.String name)
Removes a script message handler.
|
void |
removeScriptMessageHandlerForNameContentWorld(java.lang.String name,
WKContentWorld contentWorld)
Removes a script message handler.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSArray<? extends WKUserScript> |
userScripts()
The user scripts associated with this user content
controller.
|
static long |
version_static() |
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 WKUserContentController(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static WKUserContentController alloc()
public static WKUserContentController 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 WKUserContentController 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 void addScriptMessageHandlerName(WKScriptMessageHandler scriptMessageHandler, java.lang.String name)
Calling this method is equivalent to calling addScriptMessageHandler:contentWorld:name: with [WKContentWorld pageWorld] as the contentWorld argument.
scriptMessageHandler - The script message handler to add.name - The name of the message handler.public void addUserScript(WKUserScript userScript)
userScript - The user script to add.public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic WKUserContentController init()
public WKUserContentController initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic void removeAllUserScripts()
public void removeScriptMessageHandlerForName(java.lang.String name)
Calling this method is equivalent to calling removeScriptMessageHandlerForName:contentWorld: with [WKContentWorld pageWorld] as the contentWorld argument.
name - The name of the message handler to remove.public NSArray<? extends WKUserScript> userScripts()
public void addContentRuleList(WKContentRuleList contentRuleList)
contentRuleList - The content rule list to add.public void removeAllContentRuleLists()
public void removeContentRuleList(WKContentRuleList contentRuleList)
contentRuleList - The content rule list to remove.public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic void addScriptMessageHandlerContentWorldName(WKScriptMessageHandler scriptMessageHandler, WKContentWorld world, java.lang.String name)
Adding a script message handler adds a function
window.webkit.messageHandlers.
The name argument must be a non-empty string.
Each WKContentWorld can have any number of script message handlers, but only one per unique name.
Once any script message handler has been added to a WKContentWorld for a given name, it is an error to add another
script message handler to that WKContentWorld for that same name without first removing the previous script message handler.
The above restriction applies to any type of script message handler - WKScriptMessageHandler and WKScriptMessageHandlerWithReply
objects will conflict with each other if you try to add them to the same WKContentWorld with the same name.
scriptMessageHandler - The script message handler to add.contentWorld - The WKContentWorld in which to add the script message handler.name - The name of the message handler.public void addScriptMessageHandlerWithReplyContentWorldName(WKScriptMessageHandlerWithReply scriptMessageHandlerWithReply, WKContentWorld contentWorld, java.lang.String name)
Adding a script message handler adds a function
window.webkit.messageHandlers.
The name argument must be a non-empty string.
Each WKContentWorld can have any number of script message handlers, but only one per unique name.
Once any script message handler has been added to a WKContentWorld for a given name, it is an error to add another
script message handler to that WKContentWorld for that same name without first removing the previous script message handler.
The above restriction applies to any type of script message handler - WKScriptMessageHandlerWithReply and WKScriptMessageHandler
objects will conflict with each other if you try to add them to the same WKContentWorld with the same name.
Refer to the WKScriptMessageHandlerWithReply documentation for examples of how it is more flexible than WKScriptMessageHandler.
scriptMessageHandlerWithReply - The script message handler to add.contentWorld - The WKContentWorld in which to add the script message handler.name - The name of the message handler.public void removeAllScriptMessageHandlers()
public void removeAllScriptMessageHandlersFromContentWorld(WKContentWorld contentWorld)
contentWorld - The WKContentWorld from which to remove all script message handlers.public void removeScriptMessageHandlerForNameContentWorld(java.lang.String name,
WKContentWorld contentWorld)
name - The name of the message handler to remove.contentWorld - The WKContentWorld from which to remove the script message handler.