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,UIActivityItemsConfigurationProviding,UIAppearance,UIAppearanceContainer,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIPopoverPresentationControllerSourceItem,UIResponderStandardEditActions,UITraitChangeObservable,UITraitEnvironment,UIUserActivityRestoring
public class WKWebView extends UIView
API-Since: 8.0
-
-
Nested Class Summary
-
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_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_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.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UITraitChangeObservable
UITraitChangeObservable.Block_registerForTraitChangesWithHandler
-
-
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 @NotNull WKWebView_appearance()To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class.@NotNull WKWebView_appearanceForTraitCollection(@NotNull UITraitCollection trait)API-Since: 8.0@NotNull WKWebView_appearanceForTraitCollectionWhenContainedIn(@NotNull UITraitCollection trait, @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.@NotNull WKWebView_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull UITraitCollection trait, @NotNull NSArray<?> containerTypes)API-Since: 9.0@NotNull WKWebView_appearanceWhenContainedIn(@Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.@NotNull WKWebView_appearanceWhenContainedInInstancesOfClasses(@NotNull NSArray<?> containerTypes)API-Since: 9.0static booleanaccessInstanceVariablesDirectly()static voidaddKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)static WKWebViewalloc()static WKWebViewallocWithZone(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 voidanimateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion(double duration, double bounce, double velocity, double delay, long options, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_6 completion)static @NotNull WKWebViewappearance()static @NotNull WKWebViewappearanceForTraitCollection(@NotNull UITraitCollection trait)static @NotNull WKWebViewappearanceForTraitCollectionWhenContainedIn(@NotNull UITraitCollection trait, @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static @NotNull WKWebViewappearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull UITraitCollection trait, @NotNull NSArray<?> containerTypes)static @NotNull WKWebViewappearanceWhenContainedIn(@Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static @NotNull WKWebViewappearanceWhenContainedInInstancesOfClasses(@NotNull NSArray<?> containerTypes)static booleanareAnimationsEnabled()static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)@NotNull WKBackForwardListbackForwardList()The web view's back-forward list.static voidbeginAnimationsContext(@Nullable java.lang.String animationID, @Nullable org.moe.natj.general.ptr.VoidPtr context)Deprecated.voidcallAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler(@NotNull java.lang.String functionBody, @Nullable NSDictionary<java.lang.String,?> arguments, @Nullable WKFrameInfo frame, @NotNull WKContentWorld contentWorld, @Nullable WKWebView.Block_callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler completionHandler)API-Since: 14.0longcameraCaptureState()The state of camera capture on a web page.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable 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.@NotNull NSArray<?>certificateChain()Deprecated.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(@NotNull java.lang.String identifier)voidcloseAllMediaPresentations()Deprecated.voidcloseAllMediaPresentationsWithCompletionHandler(@Nullable WKWebView.Block_closeAllMediaPresentationsWithCompletionHandler completionHandler)Closes all out-of-window media presentations in a WKWebView.static voidcommitAnimations()Deprecated.@NotNull WKWebViewConfigurationconfiguration()A copy of the configuration with which the web view was initialized.voidcreatePDFWithConfigurationCompletionHandler(@Nullable WKPDFConfiguration pdfConfiguration, @NotNull 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(@NotNull 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.@Nullable 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(@NotNull java.lang.String javaScriptString, @Nullable WKWebView.Block_evaluateJavaScriptCompletionHandler completionHandler)Evaluates the given JavaScript string.voidevaluateJavaScriptInFrameInContentWorldCompletionHandler(@NotNull java.lang.String javaScriptString, @Nullable WKFrameInfo frame, @NotNull WKContentWorld contentWorld, @Nullable WKWebView.Block_evaluateJavaScriptInFrameInContentWorldCompletionHandler completionHandler)Evaluates the given JavaScript string.@Nullable UIFindInteractionfindInteraction()If @link findInteractionEnabled @/link is set to true, returns this web view's built-in find interaction.voidfindStringWithConfigurationCompletionHandler(@NotNull java.lang.String string, @Nullable WKFindConfiguration configuration, @NotNull WKWebView.Block_findStringWithConfigurationCompletionHandler completionHandler)Searches the page contents for the given string.longfullscreenState()A WKWebView's fullscreen state.@Nullable WKNavigationgoBack()Navigates to the back item in the back-forward list.@Nullable WKNavigationgoForward()Navigates to the forward item in the back-forward list.@Nullable WKNavigationgoToBackForwardListItem(@NotNull WKBackForwardListItem item)Navigates to an item from the back-forward list and sets it as the current item.static booleanhandlesURLScheme(@NotNull 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(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERWKWebViewinitWithFrame(CGRect frame)WKWebViewinitWithFrameConfiguration(CGRect frame, @NotNull 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)@Nullable java.lang.ObjectinteractionState()The interaction state for the WKWebView The interaction state (back-forward list, currently loaded page, scroll position, form data...) for the WKWebView, which can be retrieved and set on another WKWebView to restore state.booleanisFindInteractionEnabled()Enables the web view's built-in find interaction.booleanisInspectable()Controls whether this @link WKWebView @/link is inspectable in Web Inspector.booleanisLoading()A Boolean value indicating whether the view is currently loading content.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static @NotNull org.moe.natj.objc.ClasslayerClass()@Nullable WKNavigationloadDataMIMETypeCharacterEncodingNameBaseURL(@NotNull NSData data, @NotNull java.lang.String MIMEType, @NotNull java.lang.String characterEncodingName, @NotNull NSURL baseURL)Sets the webpage contents and base URL.@NotNull WKNavigationloadFileRequestAllowingReadAccessToURL(@NotNull NSURLRequest request, @NotNull NSURL readAccessURL)Navigates to the requested file URL on the filesystem.@Nullable WKNavigationloadFileURLAllowingReadAccessToURL(@NotNull NSURL URL, @NotNull NSURL readAccessURL)Navigates to the requested file URL on the filesystem.@Nullable WKNavigationloadHTMLStringBaseURL(@NotNull java.lang.String string, @Nullable NSURL baseURL)Sets the webpage contents and base URL.@Nullable WKNavigationloadRequest(@NotNull NSURLRequest request)Navigates to a requested URL.@NotNull WKNavigationloadSimulatedRequestResponseHTMLString(@NotNull NSURLRequest request, @NotNull java.lang.String string)Sets the webpage contents from the passed HTML string as if it was the response to the supplied request.@NotNull WKNavigationloadSimulatedRequestResponseResponseData(@NotNull NSURLRequest request, @NotNull NSURLResponse response, @NotNull NSData data)Sets the webpage contents from the passed data as if it was the response to the supplied request.@NotNull WKNavigationloadSimulatedRequestWithResponseHTMLString(@NotNull NSURLRequest request, @NotNull java.lang.String string)Deprecated.@NotNull WKNavigationloadSimulatedRequestWithResponseResponseData(@NotNull NSURLRequest request, @NotNull NSURLResponse response, @NotNull NSData data)Deprecated.UIEdgeInsetsmaximumViewportInset()API-Since: 15.5@Nullable java.lang.StringmediaType()The media type for the WKWebView The value of mediaType will override the normal value of the CSS media property.longmicrophoneCaptureState()The state of microphone capture on a web page.UIEdgeInsetsminimumViewportInset()API-Since: 15.5static voidmodifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)@Nullable WKNavigationDelegatenavigationDelegate()The web view's navigation delegate.static WKWebViewnew_objc()doublepageZoom()The factor by which page content is scaled relative to the viewport.voidpauseAllMediaPlayback(@Nullable WKWebView.Block_pauseAllMediaPlayback completionHandler)Deprecated.voidpauseAllMediaPlaybackWithCompletionHandler(@Nullable WKWebView.Block_pauseAllMediaPlaybackWithCompletionHandler completionHandler)Pauses media playback in WKWebView.static voidperformSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, @NotNull NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)static voidperformWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)@Nullable WKNavigationreload()Reloads the current page.@Nullable WKNavigationreloadFromOrigin()Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.voidrequestMediaPlaybackState(@NotNull WKWebView.Block_requestMediaPlaybackState completionHandler)Deprecated.voidrequestMediaPlaybackStateWithCompletionHandler(@NotNull WKWebView.Block_requestMediaPlaybackStateWithCompletionHandler completionHandler)Get the current media playback state of a WKWebView.static booleanrequiresConstraintBasedLayout()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidresumeAllMediaPlayback(@Nullable WKWebView.Block_resumeAllMediaPlayback completionHandler)Deprecated.voidresumeDownloadFromResumeDataCompletionHandler(@NotNull NSData resumeData, @NotNull WKWebView.Block_resumeDownloadFromResumeDataCompletionHandler completionHandler)Resumes a download that failed or was canceled.@NotNull UIScrollViewscrollView()The scroll view associated with the web view.@Nullable SecTrustRefserverTrust()A SecTrustRef for the currently committed navigation.voidsetAllMediaPlaybackSuspendedCompletionHandler(boolean suspended, @Nullable WKWebView.Block_setAllMediaPlaybackSuspendedCompletionHandler completionHandler)Suspends or resumes all media playback in WKWebView.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)Deprecated.static voidsetAnimationCurve(long curve)Deprecated.static voidsetAnimationDelay(double delay)Deprecated.static voidsetAnimationDelegate(@Nullable java.lang.Object delegate)Deprecated.static voidsetAnimationDidStopSelector(@Nullable org.moe.natj.objc.SEL selector)Deprecated.static voidsetAnimationDuration_static(double duration)Deprecated.static voidsetAnimationRepeatAutoreverses(boolean repeatAutoreverses)Deprecated.static voidsetAnimationRepeatCount_static(float repeatCount)Deprecated.static voidsetAnimationsEnabled(boolean enabled)static voidsetAnimationStartDate(@NotNull NSDate startDate)Deprecated.static voidsetAnimationTransitionForViewCache(long transition, @NotNull UIView view, boolean cache)Deprecated.static voidsetAnimationWillStartSelector(@Nullable org.moe.natj.objc.SEL selector)Deprecated.voidsetCameraCaptureStateCompletionHandler(long state, @Nullable WKWebView.Block_setCameraCaptureStateCompletionHandler completionHandler)Set camera capture state of a WKWebView.voidsetCustomUserAgent(@Nullable java.lang.String value)The custom user agent string or nil if no custom user agent string has been set.voidsetFindInteractionEnabled(boolean value)Enables the web view's built-in find interaction.voidsetInspectable(boolean value)Controls whether this @link WKWebView @/link is inspectable in Web Inspector.voidsetInteractionState(@Nullable java.lang.Object value)The interaction state for the WKWebView The interaction state (back-forward list, currently loaded page, scroll position, form data...) for the WKWebView, which can be retrieved and set on another WKWebView to restore state.voidsetMediaType(@Nullable java.lang.String value)The media type for the WKWebView The value of mediaType will override the normal value of the CSS media property.voidsetMicrophoneCaptureStateCompletionHandler(long state, @Nullable WKWebView.Block_setMicrophoneCaptureStateCompletionHandler completionHandler)Set microphone capture state of a WKWebView.voidsetMinimumViewportInsetMaximumViewportInset(UIEdgeInsets minimumViewportInset, UIEdgeInsets maximumViewportInset)API-Since: 15.5voidsetNavigationDelegate(@Nullable WKNavigationDelegate value)The web view's navigation delegate.voidsetNavigationDelegate_unsafe(@Nullable WKNavigationDelegate value)The web view's navigation delegate.voidsetPageZoom(double value)The factor by which page content is scaled relative to the viewport.voidsetUIDelegate(@Nullable WKUIDelegate value)The web view's user interface delegate.voidsetUIDelegate_unsafe(@Nullable WKUIDelegate value)The web view's user interface delegate.voidsetUnderPageBackgroundColor(UIColor value)API-Since: 15.0static voidsetVersion_static(long aVersion)voidstartDownloadUsingRequestCompletionHandler(@NotNull NSURLRequest request, @NotNull WKWebView.Block_startDownloadUsingRequestCompletionHandler completionHandler)Begins a download in the context of the currently displayed webpage as if the WKNavigationDelegate turned a navigation into a download instead The download needs its delegate to be set in the completionHandler to receive updates about its progress.voidstopLoading()Stops loading all resources on the current page.static org.moe.natj.objc.Classsuperclass_static()voidsuspendAllMediaPlayback(@Nullable WKWebView.Block_suspendAllMediaPlayback completionHandler)Deprecated.voidtakeSnapshotWithConfigurationCompletionHandler(@Nullable WKSnapshotConfiguration snapshotConfiguration, @NotNull WKWebView.Block_takeSnapshotWithConfigurationCompletionHandler completionHandler)API-Since: 11.0@Nullable UIColorthemeColor()API-Since: 15.0@Nullable java.lang.Stringtitle()The page title.static voidtransitionFromViewToViewDurationOptionsCompletion(@NotNull UIView fromView, @NotNull UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)static voidtransitionWithViewDurationOptionsAnimationsCompletion(@NotNull UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)@Nullable WKUIDelegateUIDelegate()The web view's user interface delegate.UIColorunderPageBackgroundColor()API-Since: 15.0@Nullable NSURLURL()The active URL.static longuserInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)static longuserInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.uikit.UIView
accessibilityIdentifier, accessibilityIgnoresInvertColors, actionForLayerForKey, addConstraint, addConstraints, addGestureRecognizer, addInteraction, addLayoutGuide, addMotionEffect, addSubview, alignmentRectForFrame, alignmentRectInsets, alpha, anchorPoint, appliedContentSizeCategoryLimitsDescription, 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, focusEffect, focusGroupIdentifier, focusGroupPriority, focusItemContainer, focusItemsInRect, frame, frameForAlignmentRect, frameInView, gestureRecognizers, gestureRecognizerShouldBegin, hasAmbiguousLayout, heightAnchor, hitTestWithEvent, hoverStyle, insertSubviewAboveSubview, insertSubviewAtIndex, insertSubviewBelowSubview, insetsLayoutMarginsFromSafeArea, interactions, intrinsicContentSize, invalidateIntrinsicContentSize, isDescendantOfView, isExclusiveTouch, isFocused, isHidden, isMultipleTouchEnabled, isOpaque, isTransparentFocusItem, isUserInteractionEnabled, keyboardLayoutGuide, largeContentImage, largeContentImageInsets, largeContentTitle, lastBaselineAnchor, layer, layerWillDraw, layoutGuides, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSublayersOfLayer, layoutSubviews, leadingAnchor, leftAnchor, maskView, maximumContentSizeCategory, minimumContentSizeCategory, motionEffects, needsUpdateConstraints, overrideUserInterfaceStyle, parentFocusEnvironment, pointInsideWithEvent, preferredFocusedView, preferredFocusEnvironments, preservesSuperviewLayoutMargins, readableContentGuide, registerForTraitChangesWithAction, registerForTraitChangesWithHandler, registerForTraitChangesWithTargetAction, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaInsetsDidChange, safeAreaLayoutGuide, scalesLargeContentImage, semanticContentAttribute, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnchorPoint, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriorityForAxis, setContentHuggingPriorityForAxis, setContentMode, setContentScaleFactor, setContentStretch, setDirectionalLayoutMargins, setExclusiveTouch, setFocusEffect, setFocusGroupIdentifier, setFocusGroupPriority, setFrame, setGestureRecognizers, setHidden, setHoverStyle, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLargeContentImage, setLargeContentImageInsets, setLargeContentTitle, setLayoutMargins, setMaskView, setMaximumContentSizeCategory, setMinimumContentSizeCategory, 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, traitOverrides, transform, transform3D, translatesAutoresizingMaskIntoConstraints, unregisterForTraitChanges, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, updateTraitsIfNeeded, viewForBaselineLayout, viewForFirstBaselineLayout, viewForLastBaselineLayout, viewPrintFormatter, viewWithTag, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, duplicate, editingInteractionConfiguration, export, find, findAndReplace, findNext, findPrevious, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, move, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, rename, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, useSelectionForFind, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
addKeyframeWithRelativeStartTimeRelativeDurationAnimations
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, @NotNull UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
-
alloc
public static WKWebView alloc()
-
allocWithZone
public static WKWebView allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animateKeyframesWithDurationDelayOptionsAnimationsCompletion
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationAnimations
public static void animateWithDurationAnimations(double duration, @NotNull UIView.Block_animateWithDurationAnimations animations)
-
animateWithDurationAnimationsCompletion
public static void animateWithDurationAnimationsCompletion(double duration, @NotNull UIView.Block_animateWithDurationAnimationsCompletion_1 animations, @Nullable UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
-
animateWithDurationDelayOptionsAnimationsCompletion
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, @NotNull UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, @Nullable UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
-
appearance
@NotNull public static @NotNull WKWebView appearance()
-
appearanceForTraitCollection
@NotNull public static @NotNull WKWebView appearanceForTraitCollection(@NotNull @NotNull UITraitCollection trait)
-
appearanceForTraitCollectionWhenContainedIn
@NotNull @Deprecated public static @NotNull WKWebView appearanceForTraitCollectionWhenContainedIn(@NotNull @NotNull UITraitCollection trait, @Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceForTraitCollectionWhenContainedInInstancesOfClasses
@NotNull public static @NotNull WKWebView appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull @NotNull UITraitCollection trait, @NotNull @NotNull NSArray<?> containerTypes)
-
appearanceWhenContainedIn
@NotNull @Deprecated public static @NotNull WKWebView appearanceWhenContainedIn(@Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceWhenContainedInInstancesOfClasses
@NotNull public static @NotNull WKWebView appearanceWhenContainedInInstancesOfClasses(@NotNull @NotNull NSArray<?> containerTypes)
-
areAnimationsEnabled
public static boolean areAnimationsEnabled()
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
beginAnimationsContext
@Deprecated public static void beginAnimationsContext(@Nullable @Nullable java.lang.String animationID, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr context)Deprecated.
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(@NotNull @NotNull java.lang.String identifier)
-
commitAnimations
@Deprecated public static void commitAnimations()
Deprecated.
-
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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
layerClass
@NotNull public static @NotNull org.moe.natj.objc.Class layerClass()
-
new_objc
public static WKWebView new_objc()
-
performSystemAnimationOnViewsOptionsAnimationsCompletion
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, @NotNull @NotNull NSArray<? extends UIView> views, long options, @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
-
performWithoutAnimation
public static void performWithoutAnimation(@NotNull 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
@Deprecated public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
Deprecated.
-
setAnimationCurve
@Deprecated public static void setAnimationCurve(long curve)
Deprecated.
-
setAnimationDelay
@Deprecated public static void setAnimationDelay(double delay)
Deprecated.
-
setAnimationDelegate
@Deprecated public static void setAnimationDelegate(@Nullable @Nullable java.lang.Object delegate)Deprecated.
-
setAnimationDidStopSelector
@Deprecated public static void setAnimationDidStopSelector(@Nullable @Nullable org.moe.natj.objc.SEL selector)Deprecated.
-
setAnimationDuration_static
@Deprecated public static void setAnimationDuration_static(double duration)
Deprecated.
-
setAnimationRepeatAutoreverses
@Deprecated public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
Deprecated.
-
setAnimationRepeatCount_static
@Deprecated public static void setAnimationRepeatCount_static(float repeatCount)
Deprecated.
-
setAnimationStartDate
@Deprecated public static void setAnimationStartDate(@NotNull @NotNull NSDate startDate)Deprecated.
-
setAnimationTransitionForViewCache
@Deprecated public static void setAnimationTransitionForViewCache(long transition, @NotNull @NotNull UIView view, boolean cache)Deprecated.
-
setAnimationWillStartSelector
@Deprecated public static void setAnimationWillStartSelector(@Nullable @Nullable org.moe.natj.objc.SEL selector)Deprecated.
-
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(@NotNull @NotNull UIView fromView, @NotNull @NotNull UIView toView, double duration, long options, @Nullable UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
-
transitionWithViewDurationOptionsAnimationsCompletion
public static void transitionWithViewDurationOptionsAnimationsCompletion(@NotNull @NotNull UIView view, double duration, long options, @Nullable UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, @Nullable 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
@Nullable public @Nullable WKUIDelegate UIDelegate()
The web view's user interface delegate.
-
URL
@Nullable public @Nullable 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. API-Since: 9.0
-
_appearance
@NotNull public @NotNull WKWebView _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
@NotNull public @NotNull WKWebView _appearanceForTraitCollection(@NotNull @NotNull UITraitCollection trait)
Description copied from interface:UIAppearanceAPI-Since: 8.0- Specified by:
_appearanceForTraitCollectionin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionin classUIView
-
_appearanceForTraitCollectionWhenContainedIn
@NotNull @Deprecated public @NotNull WKWebView _appearanceForTraitCollectionWhenContainedIn(@NotNull @NotNull UITraitCollection trait, @Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.Description copied from interface:UIAppearanceAPI-Since: 8.0 Deprecated-Since: 9.0- Specified by:
_appearanceForTraitCollectionWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInin classUIView
-
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses
@NotNull public @NotNull WKWebView _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull @NotNull UITraitCollection trait, @NotNull @NotNull NSArray<?> containerTypes)
Description copied from interface:UIAppearanceAPI-Since: 9.0- Specified by:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin classUIView
-
_appearanceWhenContainedIn
@NotNull @Deprecated public @NotNull WKWebView _appearanceWhenContainedIn(@Nullable @Nullable 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. API-Since: 5.0 Deprecated-Since: 9.0- Specified by:
_appearanceWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInin classUIView
-
_appearanceWhenContainedInInstancesOfClasses
@NotNull public @NotNull WKWebView _appearanceWhenContainedInInstancesOfClasses(@NotNull @NotNull NSArray<?> containerTypes)
Description copied from interface:UIAppearanceAPI-Since: 9.0- Specified by:
_appearanceWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInInstancesOfClassesin classUIView
-
backForwardList
@NotNull public @NotNull 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
@NotNull @Deprecated public @NotNull NSArray<?> certificateChain()
Deprecated.API-Since: 9.0 Deprecated-Since: 10.0
-
configuration
@NotNull public @NotNull WKWebViewConfiguration configuration()
A copy of the configuration with which the web view was initialized.
-
customUserAgent
@Nullable public @Nullable java.lang.String customUserAgent()
The custom user agent string or nil if no custom user agent string has been set. API-Since: 9.0
-
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(@NotNull @NotNull java.lang.String javaScriptString, @Nullable @Nullable 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
@Nullable public @Nullable 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
@Nullable public @Nullable 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
@Nullable public @Nullable WKNavigation goToBackForwardListItem(@NotNull @NotNull 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(@NotNull @NotNull 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, @NotNull @NotNull 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
@Nullable public @Nullable WKNavigation loadDataMIMETypeCharacterEncodingNameBaseURL(@NotNull @NotNull NSData data, @NotNull @NotNull java.lang.String MIMEType, @NotNull @NotNull java.lang.String characterEncodingName, @NotNull @NotNull 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. API-Since: 9.0
-
loadFileURLAllowingReadAccessToURL
@Nullable public @Nullable WKNavigation loadFileURLAllowingReadAccessToURL(@NotNull @NotNull NSURL URL, @NotNull @NotNull 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. API-Since: 9.0
-
loadHTMLStringBaseURL
@Nullable public @Nullable WKNavigation loadHTMLStringBaseURL(@NotNull @NotNull java.lang.String string, @Nullable @Nullable 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
@Nullable public @Nullable WKNavigation loadRequest(@NotNull @NotNull 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
@Nullable public @Nullable WKNavigationDelegate navigationDelegate()
The web view's navigation delegate.
-
reload
@Nullable public @Nullable WKNavigation reload()
Reloads the current page.- Returns:
- A new navigation representing the reload.
-
reloadFromOrigin
@Nullable public @Nullable 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
@NotNull public @NotNull UIScrollView scrollView()
The scroll view associated with the web view.
-
serverTrust
@Nullable public @Nullable SecTrustRef serverTrust()
A SecTrustRef for the currently committed navigation. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property. API-Since: 10.0
-
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. API-Since: 9.0
-
setCustomUserAgent
public void setCustomUserAgent(@Nullable @Nullable java.lang.String value)The custom user agent string or nil if no custom user agent string has been set. API-Since: 9.0
-
setNavigationDelegate_unsafe
public void setNavigationDelegate_unsafe(@Nullable @Nullable WKNavigationDelegate value)The web view's navigation delegate.
-
setNavigationDelegate
public void setNavigationDelegate(@Nullable @Nullable WKNavigationDelegate value)The web view's navigation delegate.
-
setUIDelegate_unsafe
public void setUIDelegate_unsafe(@Nullable @Nullable WKUIDelegate value)The web view's user interface delegate.
-
setUIDelegate
public void setUIDelegate(@Nullable @Nullable WKUIDelegate value)The web view's user interface delegate.
-
stopLoading
public void stopLoading()
Stops loading all resources on the current page.
-
title
@Nullable public @Nullable java.lang.String title()
The page title. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
-
handlesURLScheme
public static boolean handlesURLScheme(@NotNull @NotNull java.lang.String urlScheme)Checks whether or not WKWebViews handle the given URL scheme by default.- Parameters:
scheme- The URL scheme to check. API-Since: 11.0
-
modifyAnimationsWithRepeatCountAutoreversesAnimations
public static void modifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, @NotNull UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
-
takeSnapshotWithConfigurationCompletionHandler
public void takeSnapshotWithConfigurationCompletionHandler(@Nullable @Nullable WKSnapshotConfiguration snapshotConfiguration, @NotNull @NotNull WKWebView.Block_takeSnapshotWithConfigurationCompletionHandler completionHandler)API-Since: 11.0
-
callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler
public void callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler(@NotNull @NotNull java.lang.String functionBody, @Nullable @Nullable NSDictionary<java.lang.String,?> arguments, @Nullable @Nullable WKFrameInfo frame, @NotNull @NotNull WKContentWorld contentWorld, @Nullable @Nullable WKWebView.Block_callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler completionHandler)API-Since: 14.0
-
createPDFWithConfigurationCompletionHandler
public void createPDFWithConfigurationCompletionHandler(@Nullable @Nullable WKPDFConfiguration pdfConfiguration, @NotNull @NotNull 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. API-Since: 14.0- 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(@NotNull @NotNull 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. API-Since: 14.0- Parameters:
completionHandler- A block to invoke when the web archive data is ready.
-
evaluateJavaScriptInFrameInContentWorldCompletionHandler
public void evaluateJavaScriptInFrameInContentWorldCompletionHandler(@NotNull @NotNull java.lang.String javaScriptString, @Nullable @Nullable WKFrameInfo frame, @NotNull @NotNull WKContentWorld contentWorld, @Nullable @Nullable 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. API-Since: 14.0- 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(@NotNull @NotNull java.lang.String string, @Nullable @Nullable WKFindConfiguration configuration, @NotNull @NotNull 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. API-Since: 14.0- 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
@Nullable public @Nullable 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. API-Since: 14.0
-
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. API-Since: 14.0
-
setMediaType
public void setMediaType(@Nullable @Nullable 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. API-Since: 14.0
-
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. API-Since: 14.0
-
cameraCaptureState
public long cameraCaptureState()
The state of camera capture on a web page. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property. API-Since: 15.0
-
closeAllMediaPresentations
@Deprecated public void closeAllMediaPresentations()
Deprecated.API-Since: 14.5 Deprecated-Since: 15.0
-
closeAllMediaPresentationsWithCompletionHandler
public void closeAllMediaPresentationsWithCompletionHandler(@Nullable @Nullable WKWebView.Block_closeAllMediaPresentationsWithCompletionHandler completionHandler)Closes all out-of-window media presentations in a WKWebView. Includes picture-in-picture and fullscreen. API-Since: 15.0
-
interactionState
@Nullable public @Nullable java.lang.Object interactionState()
The interaction state for the WKWebView The interaction state (back-forward list, currently loaded page, scroll position, form data...) for the WKWebView, which can be retrieved and set on another WKWebView to restore state. API-Since: 15.0
-
loadFileRequestAllowingReadAccessToURL
@NotNull public @NotNull WKNavigation loadFileRequestAllowingReadAccessToURL(@NotNull @NotNull NSURLRequest request, @NotNull @NotNull 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:
request- The request specifying the file URL to which to navigate.readAccessURL- The URL to allow read access to.- Returns:
- A new navigation for the given file URL. API-Since: 15.0
-
loadSimulatedRequestResponseResponseData
@NotNull public @NotNull WKNavigation loadSimulatedRequestResponseResponseData(@NotNull @NotNull NSURLRequest request, @NotNull @NotNull NSURLResponse response, @NotNull @NotNull NSData data)
Sets the webpage contents from the passed data as if it was the response to the supplied request. The request is never actually sent to the supplied URL, though loads of resources defined in the NSData object would be performed.- Parameters:
request- The request specifying the base URL and other loading details to be used while interpreting the supplied data object.response- A response that is used to interpret the supplied data object.data- The data to use as the contents of the webpage.- Returns:
- A new navigation. API-Since: 15.0
-
loadSimulatedRequestResponseHTMLString
@NotNull public @NotNull WKNavigation loadSimulatedRequestResponseHTMLString(@NotNull @NotNull NSURLRequest request, @NotNull @NotNull java.lang.String string)
Sets the webpage contents from the passed HTML string as if it was the response to the supplied request. The request is never actually sent to the supplied URL, though loads of resources defined in the HTML string would be performed.- Parameters:
request- The request specifying the base URL and other loading details to be used while interpreting the supplied data object.string- The data to use as the contents of the webpage.- Returns:
- A new navigation. API-Since: 15.0
-
loadSimulatedRequestWithResponseResponseData
@NotNull @Deprecated public @NotNull WKNavigation loadSimulatedRequestWithResponseResponseData(@NotNull @NotNull NSURLRequest request, @NotNull @NotNull NSURLResponse response, @NotNull @NotNull NSData data)
Deprecated.API-Since: 15.0 Deprecated-Since: 15.0
-
loadSimulatedRequestWithResponseHTMLString
@NotNull @Deprecated public @NotNull WKNavigation loadSimulatedRequestWithResponseHTMLString(@NotNull @NotNull NSURLRequest request, @NotNull @NotNull java.lang.String string)
Deprecated.API-Since: 15.0 Deprecated-Since: 15.0
-
microphoneCaptureState
public long microphoneCaptureState()
The state of microphone capture on a web page. [@link] WKWebView @/link is key-value observing (KVO) compliant for this property. API-Since: 15.0
-
pauseAllMediaPlayback
@Deprecated public void pauseAllMediaPlayback(@Nullable @Nullable WKWebView.Block_pauseAllMediaPlayback completionHandler)Deprecated.API-Since: 14.5 Deprecated-Since: 15.0
-
pauseAllMediaPlaybackWithCompletionHandler
public void pauseAllMediaPlaybackWithCompletionHandler(@Nullable @Nullable WKWebView.Block_pauseAllMediaPlaybackWithCompletionHandler completionHandler)Pauses media playback in WKWebView. Pauses media playback. Media in the page can be restarted by calling play() on a media element or resume() on an AudioContext in JavaScript. A user can also use media controls to play media content after it has been paused. API-Since: 15.0
-
requestMediaPlaybackState
@Deprecated public void requestMediaPlaybackState(@NotNull @NotNull WKWebView.Block_requestMediaPlaybackState completionHandler)Deprecated.API-Since: 14.5 Deprecated-Since: 15.0
-
requestMediaPlaybackStateWithCompletionHandler
public void requestMediaPlaybackStateWithCompletionHandler(@NotNull @NotNull WKWebView.Block_requestMediaPlaybackStateWithCompletionHandler completionHandler)Get the current media playback state of a WKWebView. If media playback exists, WKMediaPlaybackState will be one of three values: WKMediaPlaybackPaused, WKMediaPlaybackSuspended, or WKMediaPlaybackPlaying. If no media playback exists in the current WKWebView, WKMediaPlaybackState will equal WKMediaPlaybackStateNone. API-Since: 15.0- Parameters:
completionHandler- A block to invoke with the return value of the function call.
-
resumeAllMediaPlayback
@Deprecated public void resumeAllMediaPlayback(@Nullable @Nullable WKWebView.Block_resumeAllMediaPlayback completionHandler)Deprecated.API-Since: 14.5 Deprecated-Since: 15.0
-
resumeDownloadFromResumeDataCompletionHandler
public void resumeDownloadFromResumeDataCompletionHandler(@NotNull @NotNull NSData resumeData, @NotNull @NotNull WKWebView.Block_resumeDownloadFromResumeDataCompletionHandler completionHandler)Resumes a download that failed or was canceled. The download needs its delegate to be set in the completionHandler to receive updates about its progress. API-Since: 14.5- Parameters:
resumeData- Data from a WKDownloadDelegate's didFailWithError or a WKDownload's cancel completionHandler.completionHandler- A block called when the download has resumed.
-
setAllMediaPlaybackSuspendedCompletionHandler
public void setAllMediaPlaybackSuspendedCompletionHandler(boolean suspended, @Nullable @Nullable WKWebView.Block_setAllMediaPlaybackSuspendedCompletionHandler completionHandler)Suspends or resumes all media playback in WKWebView. If suspended is true, this pauses media playback and blocks all attempts by the page or the user to resume until setAllMediaPlaybackSuspended is called again with suspended set to false. Media playback should always be suspended and resumed in pairs. API-Since: 15.0- Parameters:
suspended- Whether media playback should be suspended or resumed.
-
setCameraCaptureStateCompletionHandler
public void setCameraCaptureStateCompletionHandler(long state, @Nullable @Nullable WKWebView.Block_setCameraCaptureStateCompletionHandler completionHandler)Set camera capture state of a WKWebView. If value is WKMediaCaptureStateNone, this will stop any camera capture. If value is WKMediaCaptureStateMuted, any active camera capture will become muted. If value is WKMediaCaptureStateActive, any muted camera capture will become active. API-Since: 15.0- Parameters:
state- State to apply for capture.completionHandler- A block to invoke after the camera state has been changed.
-
setInteractionState
public void setInteractionState(@Nullable @Nullable java.lang.Object value)The interaction state for the WKWebView The interaction state (back-forward list, currently loaded page, scroll position, form data...) for the WKWebView, which can be retrieved and set on another WKWebView to restore state. API-Since: 15.0
-
setMicrophoneCaptureStateCompletionHandler
public void setMicrophoneCaptureStateCompletionHandler(long state, @Nullable @Nullable WKWebView.Block_setMicrophoneCaptureStateCompletionHandler completionHandler)Set microphone capture state of a WKWebView. If value is WKMediaCaptureStateNone, this will stop any microphone capture. If value is WKMediaCaptureStateMuted, any active microphone capture will become muted. If value is WKMediaCaptureStateActive, any muted microphone capture will become active. API-Since: 15.0- Parameters:
state- state to apply for capture.completionHandler- A block to invoke after the microphone state has been changed.
-
setUnderPageBackgroundColor
public void setUnderPageBackgroundColor(UIColor value)
API-Since: 15.0
-
startDownloadUsingRequestCompletionHandler
public void startDownloadUsingRequestCompletionHandler(@NotNull @NotNull NSURLRequest request, @NotNull @NotNull WKWebView.Block_startDownloadUsingRequestCompletionHandler completionHandler)Begins a download in the context of the currently displayed webpage as if the WKNavigationDelegate turned a navigation into a download instead The download needs its delegate to be set in the completionHandler to receive updates about its progress. API-Since: 14.5- Parameters:
request- The request specifying the URL to download.completionHandler- A block called when the download has started.
-
suspendAllMediaPlayback
@Deprecated public void suspendAllMediaPlayback(@Nullable @Nullable WKWebView.Block_suspendAllMediaPlayback completionHandler)Deprecated.API-Since: 14.5 Deprecated-Since: 15.0
-
themeColor
@Nullable public @Nullable UIColor themeColor()
API-Since: 15.0
-
underPageBackgroundColor
public UIColor underPageBackgroundColor()
API-Since: 15.0
-
findInteraction
@Nullable public @Nullable UIFindInteraction findInteraction()
If @link findInteractionEnabled @/link is set to true, returns this web view's built-in find interaction. Otherwise, nil. API-Since: 16.0
-
fullscreenState
public long fullscreenState()
A WKWebView's fullscreen state. [@link] WKWebView @link is key-value observing (KVO) compliant for this property. When an element in the WKWebView enters fullscreen, WebKit will replace the WKWebView in the application view hierarchy with a "placeholder" view, and move the WKWebView into a fullscreen window. When the element exits fullscreen later, the WKWebView will be moved back into the application view hierarchy. An application may need to adjust/restore its native UI components when the fullscreen state changes. The application should observe the fullscreenState property of WKWebView in order to receive notifications regarding the fullscreen state change. API-Since: 16.0
-
isFindInteractionEnabled
public boolean isFindInteractionEnabled()
Enables the web view's built-in find interaction. API-Since: 16.0
-
maximumViewportInset
public UIEdgeInsets maximumViewportInset()
API-Since: 15.5
-
minimumViewportInset
public UIEdgeInsets minimumViewportInset()
API-Since: 15.5
-
setFindInteractionEnabled
public void setFindInteractionEnabled(boolean value)
Enables the web view's built-in find interaction. API-Since: 16.0
-
setMinimumViewportInsetMaximumViewportInset
public void setMinimumViewportInsetMaximumViewportInset(UIEdgeInsets minimumViewportInset, UIEdgeInsets maximumViewportInset)
API-Since: 15.5
-
animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion
public static void animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion(double duration, double bounce, double velocity, double delay, long options, @NotNull UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5 animations, @Nullable UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_6 completion)
-
isInspectable
public boolean isInspectable()
Controls whether this @link WKWebView @/link is inspectable in Web Inspector. The default value is NO. API-Since: 16.4
-
setInspectable
public void setInspectable(boolean value)
Controls whether this @link WKWebView @/link is inspectable in Web Inspector. The default value is NO. API-Since: 16.4
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-