Package apple.webkit
Class WKWebView
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIView
-
- apple.webkit.WKWebView
-
- All Implemented Interfaces:
NSCoding,NSObject,CALayerDelegate,UIAccessibilityIdentification,UIAppearance,UIAppearanceContainer,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UITraitEnvironment,UIUserActivityRestoring
public class WKWebView extends UIView
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWKWebView.Block_callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandlerstatic interfaceWKWebView.Block_createPDFWithConfigurationCompletionHandlerstatic interfaceWKWebView.Block_createWebArchiveDataWithCompletionHandlerstatic interfaceWKWebView.Block_evaluateJavaScriptCompletionHandlerstatic interfaceWKWebView.Block_evaluateJavaScriptInFrameInContentWorldCompletionHandlerstatic interfaceWKWebView.Block_findStringWithConfigurationCompletionHandlerstatic interfaceWKWebView.Block_takeSnapshotWithConfigurationCompletionHandler-
Nested classes/interfaces inherited from class apple.uikit.UIView
UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4, UIView.Block_animateWithDurationAnimations, UIView.Block_animateWithDurationAnimationsCompletion_1, UIView.Block_animateWithDurationAnimationsCompletion_2, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4, UIView.Block_performWithoutAnimation, UIView.Block_transitionFromViewToViewDurationOptionsCompletion, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWKWebView(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object_appearance()To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class.java.lang.Object_appearanceForTraitCollection(UITraitCollection trait)java.lang.Object_appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.java.lang.Object_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)java.lang.Object_appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.java.lang.Object_appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)static booleanaccessInstanceVariablesDirectly()static voidaddKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)static WKWebViewalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanallowsBackForwardNavigationGestures()A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations.booleanallowsLinkPreview()A Boolean value indicating whether link preview is allowed for any links inside this WKWebView.static voidanimateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationAnimations(double duration, UIView.Block_animateWithDurationAnimations animations)static voidanimateWithDurationAnimationsCompletion(double duration, UIView.Block_animateWithDurationAnimationsCompletion_1 animations, UIView.Block_animateWithDurationAnimationsCompletion_2 completion)static voidanimateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)static java.lang.Objectappearance()static java.lang.ObjectappearanceForTraitCollection(UITraitCollection trait)static java.lang.ObjectappearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static java.lang.ObjectappearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)static java.lang.ObjectappearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static java.lang.ObjectappearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)static booleanareAnimationsEnabled()static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)WKBackForwardListbackForwardList()The web view's back-forward list.static voidbeginAnimationsContext(java.lang.String animationID, org.moe.natj.general.ptr.VoidPtr context)voidcallAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler(java.lang.String functionBody, NSDictionary<java.lang.String,?> arguments, WKFrameInfo frame, WKContentWorld contentWorld, WKWebView.Block_callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler completionHandler)Calls the given JavaScript string as an async JavaScript function, passing the given named arguments to that function.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)booleancanGoBack()A Boolean value indicating whether there is a back item in the back-forward list that can be navigated to.booleancanGoForward()A Boolean value indicating whether there is a forward item in the back-forward list that can be navigated to.NSArray<?>certificateChain()static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(java.lang.String identifier)static voidcommitAnimations()WKWebViewConfigurationconfiguration()A copy of the configuration with which the web view was initialized.voidcreatePDFWithConfigurationCompletionHandler(WKPDFConfiguration pdfConfiguration, WKWebView.Block_createPDFWithConfigurationCompletionHandler completionHandler)Create a PDF document representation from the web page currently displayed in the WKWebView If the WKPDFConfiguration is nil, the method will create a PDF document representing the bounds of the currently displayed web page.voidcreateWebArchiveDataWithCompletionHandler(WKWebView.Block_createWebArchiveDataWithCompletionHandler completionHandler)Create WebKit web archive data representing the current web content of the WKWebView WebKit web archive data represents a snapshot of web content.java.lang.StringcustomUserAgent()The custom user agent string or nil if no custom user agent string has been set.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()doubleestimatedProgress()An estimate of what fraction of the current navigation has been completed.voidevaluateJavaScriptCompletionHandler(java.lang.String javaScriptString, WKWebView.Block_evaluateJavaScriptCompletionHandler completionHandler)Evaluates the given JavaScript string.voidevaluateJavaScriptInFrameInContentWorldCompletionHandler(java.lang.String javaScriptString, WKFrameInfo frame, WKContentWorld contentWorld, WKWebView.Block_evaluateJavaScriptInFrameInContentWorldCompletionHandler completionHandler)Evaluates the given JavaScript string.voidfindStringWithConfigurationCompletionHandler(java.lang.String string, WKFindConfiguration configuration, WKWebView.Block_findStringWithConfigurationCompletionHandler completionHandler)Searches the page contents for the given string.WKNavigationgoBack()Navigates to the back item in the back-forward list.WKNavigationgoForward()Navigates to the forward item in the back-forward list.WKNavigationgoToBackForwardListItem(WKBackForwardListItem item)Navigates to an item from the back-forward list and sets it as the current item.static booleanhandlesURLScheme(java.lang.String urlScheme)Checks whether or not WKWebViews handle the given URL scheme by default.static longhash_static()booleanhasOnlySecureContent()A Boolean value indicating whether all resources on the page have been loaded over securely encrypted connections.static doubleinheritedAnimationDuration()WKWebViewinit()WKWebViewinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERWKWebViewinitWithFrame(CGRect frame)WKWebViewinitWithFrameConfiguration(CGRect frame, WKWebViewConfiguration configuration)Returns a web view initialized with a specified frame and configuration.static 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)booleanisLoading()A Boolean value indicating whether the view is currently loading content.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static org.moe.natj.objc.ClasslayerClass()WKNavigationloadDataMIMETypeCharacterEncodingNameBaseURL(NSData data, java.lang.String MIMEType, java.lang.String characterEncodingName, NSURL baseURL)Sets the webpage contents and base URL.WKNavigationloadFileURLAllowingReadAccessToURL(NSURL URL, NSURL readAccessURL)Navigates to the requested file URL on the filesystem.WKNavigationloadHTMLStringBaseURL(java.lang.String string, NSURL baseURL)Sets the webpage contents and base URL.WKNavigationloadRequest(NSURLRequest request)Navigates to a requested URL.java.lang.StringmediaType()The media type for the WKWebView The value of mediaType will override the normal value of the CSS media property.static voidmodifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)WKNavigationDelegatenavigationDelegate()The web view's navigation delegate.static java.lang.Objectnew_objc()doublepageZoom()The factor by which page content is scaled relative to the viewport.static voidperformSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)static voidperformWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)WKNavigationreload()Reloads the current page.WKNavigationreloadFromOrigin()Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.static booleanrequiresConstraintBasedLayout()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)UIScrollViewscrollView()The scroll view associated with the web view.SecTrustRefserverTrust()A SecTrustRef for the currently committed navigation.voidsetAllowsBackForwardNavigationGestures(boolean value)A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations.voidsetAllowsLinkPreview(boolean value)A Boolean value indicating whether link preview is allowed for any links inside this WKWebView.static voidsetAnimationBeginsFromCurrentState(boolean fromCurrentState)static voidsetAnimationCurve(long curve)static voidsetAnimationDelay(double delay)static voidsetAnimationDelegate(java.lang.Object delegate)static voidsetAnimationDidStopSelector(org.moe.natj.objc.SEL selector)static voidsetAnimationDuration_static(double duration)static voidsetAnimationRepeatAutoreverses(boolean repeatAutoreverses)static voidsetAnimationRepeatCount_static(float repeatCount)static voidsetAnimationsEnabled(boolean enabled)static voidsetAnimationStartDate(NSDate startDate)static voidsetAnimationTransitionForViewCache(long transition, UIView view, boolean cache)static voidsetAnimationWillStartSelector(org.moe.natj.objc.SEL selector)voidsetCustomUserAgent(java.lang.String value)The custom user agent string or nil if no custom user agent string has been set.voidsetMediaType(java.lang.String value)The media type for the WKWebView The value of mediaType will override the normal value of the CSS media property.voidsetNavigationDelegate(WKNavigationDelegate value)The web view's navigation delegate.voidsetNavigationDelegate_unsafe(WKNavigationDelegate value)The web view's navigation delegate.voidsetPageZoom(double value)The factor by which page content is scaled relative to the viewport.voidsetUIDelegate(WKUIDelegate value)The web view's user interface delegate.voidsetUIDelegate_unsafe(WKUIDelegate value)The web view's user interface delegate.static voidsetVersion_static(long aVersion)voidstopLoading()Stops loading all resources on the current page.static org.moe.natj.objc.Classsuperclass_static()voidtakeSnapshotWithConfigurationCompletionHandler(WKSnapshotConfiguration snapshotConfiguration, WKWebView.Block_takeSnapshotWithConfigurationCompletionHandler completionHandler)java.lang.Stringtitle()The page title.static voidtransitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)static voidtransitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)WKUIDelegateUIDelegate()The web view's user interface delegate.NSURLURL()The active URL.static longuserInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)static longuserInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)static longversion_static()-
Methods inherited from class apple.uikit.UIView
accessibilityIdentifier, accessibilityIgnoresInvertColors, actionForLayerForKey, addConstraint, addConstraints, addGestureRecognizer, addInteraction, addLayoutGuide, addMotionEffect, addSubview, alignmentRectForFrame, alignmentRectInsets, alpha, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, canBecomeFocused, center, centerXAnchor, centerYAnchor, clearsContextBeforeDrawing, clipsToBounds, collisionBoundingPath, collisionBoundsType, constraints, constraintsAffectingLayoutForAxis, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, contentScaleFactor, contentStretch, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, coordinateSpace, decodeRestorableStateWithCoder, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocusInContextWithAnimationCoordinator, directionalLayoutMargins, displayLayer, drawLayerInContext, drawRect, drawRectForViewPrintFormatter, drawViewHierarchyInRectAfterScreenUpdates, effectiveUserInterfaceLayoutDirection, encodeRestorableStateWithCoder, encodeWithCoder, endEditing, exchangeSubviewAtIndexWithSubviewAtIndex, exerciseAmbiguityInLayout, firstBaselineAnchor, focusGroupIdentifier, focusItemContainer, focusItemsInRect, frame, frameForAlignmentRect, gestureRecognizers, gestureRecognizerShouldBegin, hasAmbiguousLayout, heightAnchor, hitTestWithEvent, insertSubviewAboveSubview, insertSubviewAtIndex, insertSubviewBelowSubview, insetsLayoutMarginsFromSafeArea, interactions, intrinsicContentSize, invalidateIntrinsicContentSize, isDescendantOfView, isExclusiveTouch, isFocused, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, largeContentImage, largeContentImageInsets, largeContentTitle, lastBaselineAnchor, layer, layerWillDraw, layoutGuides, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSublayersOfLayer, layoutSubviews, leadingAnchor, leftAnchor, maskView, motionEffects, needsUpdateConstraints, overrideUserInterfaceStyle, parentFocusEnvironment, pointInsideWithEvent, preferredFocusedView, preferredFocusEnvironments, preservesSuperviewLayoutMargins, readableContentGuide, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaInsetsDidChange, safeAreaLayoutGuide, scalesLargeContentImage, semanticContentAttribute, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriorityForAxis, setContentHuggingPriorityForAxis, setContentMode, setContentScaleFactor, setContentStretch, setDirectionalLayoutMargins, setExclusiveTouch, setFocusGroupIdentifier, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLargeContentImage, setLargeContentImageInsets, setLargeContentTitle, setLayoutMargins, setMaskView, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplayInRect, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setScalesLargeContentImage, setSemanticContentAttribute, setShowsLargeContentViewer, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTransform3D, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocusInContext, showsLargeContentViewer, sizeThatFits, sizeToFit, snapshotViewAfterScreenUpdates, subviews, superview, systemLayoutSizeFittingSize, systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, trailingAnchor, traitCollection, traitCollectionDidChange, transform, transform3D, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, viewForBaselineLayout, viewForFirstBaselineLayout, viewForLastBaselineLayout, viewPrintFormatter, viewWithTag, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
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()
-
addKeyframeWithRelativeStartTimeRelativeDurationAnimations
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
-
alloc
public static WKWebView alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animateKeyframesWithDurationDelayOptionsAnimationsCompletion
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationAnimations
public static void animateWithDurationAnimations(double duration, UIView.Block_animateWithDurationAnimations animations)
-
animateWithDurationAnimationsCompletion
public static void animateWithDurationAnimationsCompletion(double duration, UIView.Block_animateWithDurationAnimationsCompletion_1 animations, UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
-
animateWithDurationDelayOptionsAnimationsCompletion
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
-
appearance
public static java.lang.Object appearance()
-
appearanceForTraitCollection
public static java.lang.Object appearanceForTraitCollection(UITraitCollection trait)
-
appearanceForTraitCollectionWhenContainedIn
@Deprecated public static java.lang.Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceForTraitCollectionWhenContainedInInstancesOfClasses
public static java.lang.Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
-
appearanceWhenContainedIn
@Deprecated public static java.lang.Object appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceWhenContainedInInstancesOfClasses
public static java.lang.Object appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
-
areAnimationsEnabled
public static boolean areAnimationsEnabled()
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
beginAnimationsContext
public static void beginAnimationsContext(java.lang.String animationID, org.moe.natj.general.ptr.VoidPtr context)
-
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()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(java.lang.String identifier)
-
commitAnimations
public static void commitAnimations()
-
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()
-
inheritedAnimationDuration
public static double inheritedAnimationDuration()
-
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)
-
layerClass
public static org.moe.natj.objc.Class layerClass()
-
new_objc
public static java.lang.Object new_objc()
-
performSystemAnimationOnViewsOptionsAnimationsCompletion
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
-
performWithoutAnimation
public static void performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)
-
requiresConstraintBasedLayout
public static boolean requiresConstraintBasedLayout()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setAnimationBeginsFromCurrentState
public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
-
setAnimationCurve
public static void setAnimationCurve(long curve)
-
setAnimationDelay
public static void setAnimationDelay(double delay)
-
setAnimationDelegate
public static void setAnimationDelegate(java.lang.Object delegate)
-
setAnimationDidStopSelector
public static void setAnimationDidStopSelector(org.moe.natj.objc.SEL selector)
-
setAnimationDuration_static
public static void setAnimationDuration_static(double duration)
-
setAnimationRepeatAutoreverses
public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
-
setAnimationRepeatCount_static
public static void setAnimationRepeatCount_static(float repeatCount)
-
setAnimationStartDate
public static void setAnimationStartDate(NSDate startDate)
-
setAnimationTransitionForViewCache
public static void setAnimationTransitionForViewCache(long transition, UIView view, boolean cache)
-
setAnimationWillStartSelector
public static void setAnimationWillStartSelector(org.moe.natj.objc.SEL selector)
-
setAnimationsEnabled
public static void setAnimationsEnabled(boolean enabled)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
transitionFromViewToViewDurationOptionsCompletion
public static void transitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
-
transitionWithViewDurationOptionsAnimationsCompletion
public static void transitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)
-
userInterfaceLayoutDirectionForSemanticContentAttribute
public static long userInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)
-
userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection
public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)
-
version_static
public static long version_static()
-
UIDelegate
public WKUIDelegate UIDelegate()
The web view's user interface delegate.
-
URL
public NSURL URL()
The active URL. This is the URL that should be reflected in the user interface. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
-
allowsBackForwardNavigationGestures
public boolean allowsBackForwardNavigationGestures()
A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations. The default value is NO.
-
allowsLinkPreview
public boolean allowsLinkPreview()
A Boolean value indicating whether link preview is allowed for any links inside this WKWebView. The default value is YES on Mac and iOS.
-
_appearance
public java.lang.Object _appearance()
Description copied from interface:UIAppearanceTo customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.- Specified by:
_appearancein interfaceUIAppearance- Overrides:
_appearancein classUIView
-
_appearanceForTraitCollection
public java.lang.Object _appearanceForTraitCollection(UITraitCollection trait)
- Specified by:
_appearanceForTraitCollectionin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionin classUIView
-
_appearanceForTraitCollectionWhenContainedIn
@Deprecated public java.lang.Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.- Specified by:
_appearanceForTraitCollectionWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInin classUIView
-
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses
public java.lang.Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
- Specified by:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin classUIView
-
_appearanceWhenContainedIn
@Deprecated public java.lang.Object _appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.Description copied from interface:UIAppearanceTo customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down.- Specified by:
_appearanceWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInin classUIView
-
_appearanceWhenContainedInInstancesOfClasses
public java.lang.Object _appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
- Specified by:
_appearanceWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInInstancesOfClassesin classUIView
-
backForwardList
public WKBackForwardList backForwardList()
The web view's back-forward list.
-
canGoBack
public boolean canGoBack()
A Boolean value indicating whether there is a back item in the back-forward list that can be navigated to. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
-
canGoForward
public boolean canGoForward()
A Boolean value indicating whether there is a forward item in the back-forward list that can be navigated to. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
-
certificateChain
public NSArray<?> certificateChain()
-
configuration
public WKWebViewConfiguration configuration()
A copy of the configuration with which the web view was initialized.
-
customUserAgent
public java.lang.String customUserAgent()
The custom user agent string or nil if no custom user agent string has been set.
-
estimatedProgress
public double estimatedProgress()
An estimate of what fraction of the current navigation has been completed. This value ranges from 0.0 to 1.0 based on the total number of bytes expected to be received, including the main document and all of its potential subresources. After a navigation completes, the value remains at 1.0 until a new navigation starts, at which point it is reset to 0.0. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
-
evaluateJavaScriptCompletionHandler
public void evaluateJavaScriptCompletionHandler(java.lang.String javaScriptString, WKWebView.Block_evaluateJavaScriptCompletionHandler completionHandler)Evaluates the given JavaScript string. The completionHandler is passed the result of the script evaluation or an error. Calling this method is equivalent to calling `evaluateJavaScript:inFrame:inContentWorld:completionHandler:` with: - A `frame` value of `nil` to represent the main frame - A `contentWorld` value of `WKContentWorld.pageWorld`- Parameters:
javaScriptString- The JavaScript string to evaluate.completionHandler- A block to invoke when script evaluation completes or fails.
-
goBack
public WKNavigation goBack()
Navigates to the back item in the back-forward list.- Returns:
- A new navigation to the requested item, or nil if there is no back item in the back-forward list.
-
goForward
public WKNavigation goForward()
Navigates to the forward item in the back-forward list.- Returns:
- A new navigation to the requested item, or nil if there is no forward item in the back-forward list.
-
goToBackForwardListItem
public WKNavigation goToBackForwardListItem(WKBackForwardListItem item)
Navigates to an item from the back-forward list and sets it as the current item.- Parameters:
item- The item to which to navigate. Must be one of the items in the web view's back-forward list.- Returns:
- A new navigation to the requested item, or nil if it is already the current item or is not part of the web view's back-forward list.
- See Also:
backForwardList()
-
hasOnlySecureContent
public boolean hasOnlySecureContent()
A Boolean value indicating whether all resources on the page have been loaded over securely encrypted connections. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
-
initWithCoder
public WKWebView initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIView
-
initWithFrame
public WKWebView initWithFrame(CGRect frame)
- Overrides:
initWithFramein classUIView
-
initWithFrameConfiguration
public WKWebView initWithFrameConfiguration(CGRect frame, WKWebViewConfiguration configuration)
Returns a web view initialized with a specified frame and configuration. This is a designated initializer. You can use [@link] -initWithFrame: @/link to initialize an instance with the default configuration. The initializer copies the specified configuration, so mutating the configuration after invoking the initializer has no effect on the web view.- Parameters:
frame- The frame for the new web view.configuration- The configuration for the new web view.- Returns:
- An initialized web view, or nil if the object could not be initialized.
-
isLoading
public boolean isLoading()
A Boolean value indicating whether the view is currently loading content. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
-
loadDataMIMETypeCharacterEncodingNameBaseURL
public WKNavigation loadDataMIMETypeCharacterEncodingNameBaseURL(NSData data, java.lang.String MIMEType, java.lang.String characterEncodingName, NSURL baseURL)
Sets the webpage contents and base URL.- Parameters:
data- The data to use as the contents of the webpage.MIMEType- The MIME type of the data.characterEncodingName- The data's character encoding name.baseURL- A URL that is used to resolve relative URLs within the document.- Returns:
- A new navigation.
-
loadFileURLAllowingReadAccessToURL
public WKNavigation loadFileURLAllowingReadAccessToURL(NSURL URL, NSURL readAccessURL)
Navigates to the requested file URL on the filesystem. If readAccessURL references a single file, only that file may be loaded by WebKit. If readAccessURL references a directory, files inside that file may be loaded by WebKit.- Parameters:
URL- The file URL to which to navigate.readAccessURL- The URL to allow read access to.- Returns:
- A new navigation for the given file URL.
-
loadHTMLStringBaseURL
public WKNavigation loadHTMLStringBaseURL(java.lang.String string, NSURL baseURL)
Sets the webpage contents and base URL.- Parameters:
string- The string to use as the contents of the webpage.baseURL- A URL that is used to resolve relative URLs within the document.- Returns:
- A new navigation.
-
loadRequest
public WKNavigation loadRequest(NSURLRequest request)
Navigates to a requested URL.- Parameters:
request- The request specifying the URL to which to navigate.- Returns:
- A new navigation for the given request.
-
navigationDelegate
public WKNavigationDelegate navigationDelegate()
The web view's navigation delegate.
-
reload
public WKNavigation reload()
Reloads the current page.- Returns:
- A new navigation representing the reload.
-
reloadFromOrigin
public WKNavigation reloadFromOrigin()
Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.- Returns:
- A new navigation representing the reload.
-
scrollView
public UIScrollView scrollView()
The scroll view associated with the web view.
-
serverTrust
public SecTrustRef serverTrust()
A SecTrustRef for the currently committed navigation. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
-
setAllowsBackForwardNavigationGestures
public void setAllowsBackForwardNavigationGestures(boolean value)
A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations. The default value is NO.
-
setAllowsLinkPreview
public void setAllowsLinkPreview(boolean value)
A Boolean value indicating whether link preview is allowed for any links inside this WKWebView. The default value is YES on Mac and iOS.
-
setCustomUserAgent
public void setCustomUserAgent(java.lang.String value)
The custom user agent string or nil if no custom user agent string has been set.
-
setNavigationDelegate_unsafe
public void setNavigationDelegate_unsafe(WKNavigationDelegate value)
The web view's navigation delegate.
-
setNavigationDelegate
public void setNavigationDelegate(WKNavigationDelegate value)
The web view's navigation delegate.
-
setUIDelegate_unsafe
public void setUIDelegate_unsafe(WKUIDelegate value)
The web view's user interface delegate.
-
setUIDelegate
public void setUIDelegate(WKUIDelegate value)
The web view's user interface delegate.
-
stopLoading
public void stopLoading()
Stops loading all resources on the current page.
-
title
public java.lang.String title()
The page title. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
-
handlesURLScheme
public static boolean handlesURLScheme(java.lang.String urlScheme)
Checks whether or not WKWebViews handle the given URL scheme by default.- Parameters:
scheme- The URL scheme to check.
-
modifyAnimationsWithRepeatCountAutoreversesAnimations
public static void modifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
-
takeSnapshotWithConfigurationCompletionHandler
public void takeSnapshotWithConfigurationCompletionHandler(WKSnapshotConfiguration snapshotConfiguration, WKWebView.Block_takeSnapshotWithConfigurationCompletionHandler completionHandler)
-
callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler
public void callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler(java.lang.String functionBody, NSDictionary<java.lang.String,?> arguments, WKFrameInfo frame, WKContentWorld contentWorld, WKWebView.Block_callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler completionHandler)Calls the given JavaScript string as an async JavaScript function, passing the given named arguments to that function. The functionBody string is treated as an anonymous JavaScript function body that can be called with named arguments. Do not format your functionBody string as a function-like callable object as you would in pure JavaScript. Your functionBody string should contain only the function body you want executed. For example do not pass in the string:- Parameters:
functionBody- The JavaScript string to use as the function body.arguments- A dictionary representing the arguments to be passed to the function call.frame- A WKFrameInfo identifying the frame in which to call the JavaScript function.contentWorld- The WKContentWorld in which to call the JavaScript function.completionHandler- A block to invoke with the return value of the function call, or with the asynchronous resolution of the function's return value.
-
createPDFWithConfigurationCompletionHandler
public void createPDFWithConfigurationCompletionHandler(WKPDFConfiguration pdfConfiguration, WKWebView.Block_createPDFWithConfigurationCompletionHandler completionHandler)
Create a PDF document representation from the web page currently displayed in the WKWebView If the WKPDFConfiguration is nil, the method will create a PDF document representing the bounds of the currently displayed web page. The completionHandler is passed the resulting PDF document data or an error. The data can be used to create a PDFDocument object. If the data is written to a file the resulting file is a valid PDF document.- Parameters:
pdfConfiguration- An object that specifies how the PDF capture is configured.completionHandler- A block to invoke when the pdf document data is ready.
-
createWebArchiveDataWithCompletionHandler
public void createWebArchiveDataWithCompletionHandler(WKWebView.Block_createWebArchiveDataWithCompletionHandler completionHandler)
Create WebKit web archive data representing the current web content of the WKWebView WebKit web archive data represents a snapshot of web content. It can be used to represent web content on a pasteboard, loaded into a WKWebView directly, and saved to a file for later use. The uniform type identifier kUTTypeWebArchive can be used get the related pasteboard type and MIME type.- Parameters:
completionHandler- A block to invoke when the web archive data is ready.
-
evaluateJavaScriptInFrameInContentWorldCompletionHandler
public void evaluateJavaScriptInFrameInContentWorldCompletionHandler(java.lang.String javaScriptString, WKFrameInfo frame, WKContentWorld contentWorld, WKWebView.Block_evaluateJavaScriptInFrameInContentWorldCompletionHandler completionHandler)Evaluates the given JavaScript string. The completionHandler is passed the result of the script evaluation or an error. Passing nil is equivalent to targeting the main frame. If the frame argument no longer represents a valid frame by the time WebKit attempts to call the JavaScript function your completion handler will be called with a WKErrorJavaScriptInvalidFrameTarget error. This might happen for a number of reasons, including but not limited to: - The target frame has been removed from the DOM via JavaScript - A parent frame has navigated, destroying all of its previous child frames No matter which WKContentWorld you use to evaluate your JavaScript string, you can make changes to the underlying web content. (e.g. the Document and its DOM structure) Such changes will be visible to script executing in all WKContentWorlds. Evaluating your JavaScript string can leave behind other changes to global state visibile to JavaScript. (e.g. `window.myVariable = 1;`) Those changes will only be visibile to scripts executed in the same WKContentWorld. evaluateJavaScript: is a great way to set up global state for future JavaScript execution in a given world. (e.g. Importing libraries/utilities that future JavaScript execution will rely on) Once your global state is set up, consider using callAsyncJavaScript: for more flexible interaction with the JavaScript programming model.- Parameters:
javaScriptString- The JavaScript string to evaluate.frame- A WKFrameInfo identifying the frame in which to evaluate the JavaScript string.contentWorld- The WKContentWorld in which to evaluate the JavaScript string.completionHandler- A block to invoke when script evaluation completes or fails.
-
findStringWithConfigurationCompletionHandler
public void findStringWithConfigurationCompletionHandler(java.lang.String string, WKFindConfiguration configuration, WKWebView.Block_findStringWithConfigurationCompletionHandler completionHandler)Searches the page contents for the given string. If the WKFindConfiguration is nil, all of the default WKFindConfiguration values will be used. A match found by the search is selected and the page is scrolled to reveal the selection. The completion handler is called after the search completes.- Parameters:
string- The string to search for.configuration- A set of options configuring the search.completionHandler- A block to invoke when the search completes.
-
mediaType
public java.lang.String mediaType()
The media type for the WKWebView The value of mediaType will override the normal value of the CSS media property. Setting the value to nil will restore the normal value. The default value is nil.
-
pageZoom
public double pageZoom()
The factor by which page content is scaled relative to the viewport. The default value is 1.0. Changing this value is equivalent to web content setting the CSS "zoom" property on all page content.
-
setMediaType
public void setMediaType(java.lang.String value)
The media type for the WKWebView The value of mediaType will override the normal value of the CSS media property. Setting the value to nil will restore the normal value. The default value is nil.
-
setPageZoom
public void setPageZoom(double value)
The factor by which page content is scaled relative to the viewport. The default value is 1.0. Changing this value is equivalent to web content setting the CSS "zoom" property on all page content.
-
-