public class WKWebView extends 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_4NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
WKWebView(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
WKWebView |
_appearanceForTraitCollection(UITraitCollection trait) |
WKWebView |
_appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait,
UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
WKWebView |
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait,
NSArray<?> containerTypes) |
WKWebView |
_appearanceWhenContainedIn(UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
WKWebView |
_appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes) |
static boolean |
accessInstanceVariablesDirectly() |
static void |
addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime,
double frameDuration,
UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations) |
static WKWebView |
alloc() |
static WKWebView |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowsBackForwardNavigationGestures()
A Boolean value indicating whether horizontal swipe gestures
will trigger back-forward list navigations.
|
boolean |
allowsLinkPreview()
A Boolean value indicating whether link preview is allowed for any
links inside this WKWebView.
|
static void |
animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion) |
static void |
animateWithDurationAnimations(double duration,
UIView.Block_animateWithDurationAnimations animations) |
static void |
animateWithDurationAnimationsCompletion(double duration,
UIView.Block_animateWithDurationAnimationsCompletion_1 animations,
UIView.Block_animateWithDurationAnimationsCompletion_2 completion) |
static void |
animateWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion) |
static void |
animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration,
double delay,
double dampingRatio,
double velocity,
long options,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion) |
static WKWebView |
appearance() |
static WKWebView |
appearanceForTraitCollection(UITraitCollection trait) |
static WKWebView |
appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait,
UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
static WKWebView |
appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait,
NSArray<?> containerTypes) |
static WKWebView |
appearanceWhenContainedIn(UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
static WKWebView |
appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes) |
static boolean |
areAnimationsEnabled() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
WKBackForwardList |
backForwardList()
The web view's back-forward list.
|
static void |
beginAnimationsContext(java.lang.String animationID,
org.moe.natj.general.ptr.VoidPtr context) |
void |
callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler(java.lang.String functionBody,
NSDictionary<java.lang.String,?> arguments,
WKFrameInfo frame,
WKContentWorld contentWorld,
WKWebView.Block_callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler completionHandler) |
long |
cameraCaptureState()
The state of camera capture on a web page.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
boolean |
canGoBack()
A Boolean value indicating whether there is a back item in
the back-forward list that can be navigated to.
|
boolean |
canGoForward()
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.Class |
classForKeyedUnarchiver() |
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
void |
closeAllMediaPresentations() |
void |
closeAllMediaPresentationsWithCompletionHandler(WKWebView.Block_closeAllMediaPresentationsWithCompletionHandler completionHandler)
Closes all out-of-window media presentations in a WKWebView.
|
static void |
commitAnimations() |
WKWebViewConfiguration |
configuration()
A copy of the configuration with which the web view was
initialized.
|
void |
createPDFWithConfigurationCompletionHandler(WKPDFConfiguration pdfConfiguration,
WKWebView.Block_createPDFWithConfigurationCompletionHandler completionHandler)
Create a PDF document representation from the web page currently displayed in the WKWebView
|
void |
createWebArchiveDataWithCompletionHandler(WKWebView.Block_createWebArchiveDataWithCompletionHandler completionHandler)
Create WebKit web archive data representing the current web content of the WKWebView
|
java.lang.String |
customUserAgent()
The custom user agent string or nil if no custom user agent string has been set.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
double |
estimatedProgress()
An estimate of what fraction of the current navigation has been completed.
|
void |
evaluateJavaScriptCompletionHandler(java.lang.String javaScriptString,
WKWebView.Block_evaluateJavaScriptCompletionHandler completionHandler)
Evaluates the given JavaScript string.
|
void |
evaluateJavaScriptInFrameInContentWorldCompletionHandler(java.lang.String javaScriptString,
WKFrameInfo frame,
WKContentWorld contentWorld,
WKWebView.Block_evaluateJavaScriptInFrameInContentWorldCompletionHandler completionHandler)
Evaluates the given JavaScript string.
|
void |
findStringWithConfigurationCompletionHandler(java.lang.String string,
WKFindConfiguration configuration,
WKWebView.Block_findStringWithConfigurationCompletionHandler completionHandler)
Searches the page contents for the given string.
|
WKNavigation |
goBack()
Navigates to the back item in the back-forward list.
|
WKNavigation |
goForward()
Navigates to the forward item in the back-forward list.
|
WKNavigation |
goToBackForwardListItem(WKBackForwardListItem item)
Navigates to an item from the back-forward list and sets it
as the current item.
|
static boolean |
handlesURLScheme(java.lang.String urlScheme)
Checks whether or not WKWebViews handle the given URL scheme by default.
|
static long |
hash_static() |
boolean |
hasOnlySecureContent()
A Boolean value indicating whether all resources on the page
have been loaded over securely encrypted connections.
|
static double |
inheritedAnimationDuration() |
WKWebView |
init() |
WKWebView |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
WKWebView |
initWithFrame(CGRect frame) |
WKWebView |
initWithFrameConfiguration(CGRect frame,
WKWebViewConfiguration configuration)
Returns a web view initialized with a specified frame and
configuration.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
java.lang.Object |
interactionState()
The interaction state for the WKWebView
|
boolean |
isLoading()
A Boolean value indicating whether the view is currently
loading content.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static org.moe.natj.objc.Class |
layerClass() |
WKNavigation |
loadDataMIMETypeCharacterEncodingNameBaseURL(NSData data,
java.lang.String MIMEType,
java.lang.String characterEncodingName,
NSURL baseURL)
Sets the webpage contents and base URL.
|
WKNavigation |
loadFileRequestAllowingReadAccessToURL(NSURLRequest request,
NSURL readAccessURL)
Navigates to the requested file URL on the filesystem.
|
WKNavigation |
loadFileURLAllowingReadAccessToURL(NSURL URL,
NSURL readAccessURL)
Navigates to the requested file URL on the filesystem.
|
WKNavigation |
loadHTMLStringBaseURL(java.lang.String string,
NSURL baseURL)
Sets the webpage contents and base URL.
|
WKNavigation |
loadRequest(NSURLRequest request)
Navigates to a requested URL.
|
WKNavigation |
loadSimulatedRequestResponseHTMLString(NSURLRequest request,
java.lang.String string)
Sets the webpage contents from the passed HTML string as if it was
the response to the supplied request.
|
WKNavigation |
loadSimulatedRequestResponseResponseData(NSURLRequest request,
NSURLResponse response,
NSData data)
Sets the webpage contents from the passed data as if it was the
response to the supplied request.
|
WKNavigation |
loadSimulatedRequestWithResponseHTMLString(NSURLRequest request,
java.lang.String string) |
WKNavigation |
loadSimulatedRequestWithResponseResponseData(NSURLRequest request,
NSURLResponse response,
NSData data) |
java.lang.String |
mediaType()
The media type for the WKWebView
|
long |
microphoneCaptureState()
The state of microphone capture on a web page.
|
static void |
modifyAnimationsWithRepeatCountAutoreversesAnimations(double count,
boolean autoreverses,
UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations) |
WKNavigationDelegate |
navigationDelegate()
The web view's navigation delegate.
|
static WKWebView |
new_objc() |
double |
pageZoom()
The factor by which page content is scaled relative to the viewport.
|
void |
pauseAllMediaPlayback(WKWebView.Block_pauseAllMediaPlayback completionHandler) |
void |
pauseAllMediaPlaybackWithCompletionHandler(WKWebView.Block_pauseAllMediaPlaybackWithCompletionHandler completionHandler)
Pauses media playback in WKWebView.
|
static void |
performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation,
NSArray<? extends UIView> views,
long options,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion) |
static void |
performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation) |
WKNavigation |
reload()
Reloads the current page.
|
WKNavigation |
reloadFromOrigin()
Reloads the current page, performing end-to-end revalidation
using cache-validating conditionals if possible.
|
void |
requestMediaPlaybackState(WKWebView.Block_requestMediaPlaybackState completionHandler) |
void |
requestMediaPlaybackStateWithCompletionHandler(WKWebView.Block_requestMediaPlaybackStateWithCompletionHandler completionHandler)
Get the current media playback state of a WKWebView.
|
static boolean |
requiresConstraintBasedLayout() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
resumeAllMediaPlayback(WKWebView.Block_resumeAllMediaPlayback completionHandler) |
void |
resumeDownloadFromResumeDataCompletionHandler(NSData resumeData,
WKWebView.Block_resumeDownloadFromResumeDataCompletionHandler completionHandler)
Resumes a download that failed or was canceled.
|
UIScrollView |
scrollView()
The scroll view associated with the web view.
|
SecTrustRef |
serverTrust()
A SecTrustRef for the currently committed navigation.
|
void |
setAllMediaPlaybackSuspendedCompletionHandler(boolean suspended,
WKWebView.Block_setAllMediaPlaybackSuspendedCompletionHandler completionHandler)
Suspends or resumes all media playback in WKWebView.
|
void |
setAllowsBackForwardNavigationGestures(boolean value)
A Boolean value indicating whether horizontal swipe gestures
will trigger back-forward list navigations.
|
void |
setAllowsLinkPreview(boolean value)
A Boolean value indicating whether link preview is allowed for any
links inside this WKWebView.
|
static void |
setAnimationBeginsFromCurrentState(boolean fromCurrentState) |
static void |
setAnimationCurve(long curve) |
static void |
setAnimationDelay(double delay) |
static void |
setAnimationDelegate(java.lang.Object delegate) |
static void |
setAnimationDidStopSelector(org.moe.natj.objc.SEL selector) |
static void |
setAnimationDuration_static(double duration) |
static void |
setAnimationRepeatAutoreverses(boolean repeatAutoreverses) |
static void |
setAnimationRepeatCount_static(float repeatCount) |
static void |
setAnimationsEnabled(boolean enabled) |
static void |
setAnimationStartDate(NSDate startDate) |
static void |
setAnimationTransitionForViewCache(long transition,
UIView view,
boolean cache) |
static void |
setAnimationWillStartSelector(org.moe.natj.objc.SEL selector) |
void |
setCameraCaptureStateCompletionHandler(long state,
WKWebView.Block_setCameraCaptureStateCompletionHandler completionHandler)
Set camera capture state of a WKWebView.
|
void |
setCustomUserAgent(java.lang.String value)
The custom user agent string or nil if no custom user agent string has been set.
|
void |
setInteractionState(java.lang.Object value)
The interaction state for the WKWebView
|
void |
setMediaType(java.lang.String value)
The media type for the WKWebView
|
void |
setMicrophoneCaptureStateCompletionHandler(long state,
WKWebView.Block_setMicrophoneCaptureStateCompletionHandler completionHandler)
Set microphone capture state of a WKWebView.
|
void |
setNavigationDelegate_unsafe(WKNavigationDelegate value)
The web view's navigation delegate.
|
void |
setNavigationDelegate(WKNavigationDelegate value)
The web view's navigation delegate.
|
void |
setPageZoom(double value)
The factor by which page content is scaled relative to the viewport.
|
void |
setUIDelegate_unsafe(WKUIDelegate value)
The web view's user interface delegate.
|
void |
setUIDelegate(WKUIDelegate value)
The web view's user interface delegate.
|
void |
setUnderPageBackgroundColor(UIColor value) |
static void |
setVersion_static(long aVersion) |
void |
startDownloadUsingRequestCompletionHandler(NSURLRequest request,
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
|
void |
stopLoading()
Stops loading all resources on the current page.
|
static org.moe.natj.objc.Class |
superclass_static() |
void |
suspendAllMediaPlayback(WKWebView.Block_suspendAllMediaPlayback completionHandler) |
void |
takeSnapshotWithConfigurationCompletionHandler(WKSnapshotConfiguration snapshotConfiguration,
WKWebView.Block_takeSnapshotWithConfigurationCompletionHandler completionHandler) |
UIColor |
themeColor() |
java.lang.String |
title()
The page title.
|
static void |
transitionFromViewToViewDurationOptionsCompletion(UIView fromView,
UIView toView,
double duration,
long options,
UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion) |
static void |
transitionWithViewDurationOptionsAnimationsCompletion(UIView view,
double duration,
long options,
UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations,
UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion) |
WKUIDelegate |
UIDelegate()
The web view's user interface delegate.
|
UIColor |
underPageBackgroundColor() |
NSURL |
URL()
The active URL.
|
static long |
userInterfaceLayoutDirectionForSemanticContentAttribute(long attribute) |
static long |
userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute,
long layoutDirection) |
static long |
version_static() |
accessibilityIdentifier, accessibilityIgnoresInvertColors, actionForLayerForKey, addConstraint, addConstraints, addGestureRecognizer, addInteraction, addLayoutGuide, addMotionEffect, addSubview, alignmentRectForFrame, alignmentRectInsets, alpha, 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, gestureRecognizers, gestureRecognizerShouldBegin, hasAmbiguousLayout, heightAnchor, hitTestWithEvent, 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, 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, setFocusEffect, setFocusGroupIdentifier, setFocusGroupPriority, setFrame, setGestureRecognizers, setHidden, 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, transform, transform3D, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, viewForBaselineLayout, viewForFirstBaselineLayout, viewForLastBaselineLayout, viewPrintFormatter, viewWithTag, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, windowactivityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, 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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime,
double frameDuration,
UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
public static WKWebView alloc()
public static WKWebView allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
public static void animateWithDurationAnimations(double duration,
UIView.Block_animateWithDurationAnimations animations)
public static void animateWithDurationAnimationsCompletion(double duration,
UIView.Block_animateWithDurationAnimationsCompletion_1 animations,
UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration,
double delay,
double dampingRatio,
double velocity,
long options,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
public static WKWebView appearance()
public static WKWebView appearanceForTraitCollection(UITraitCollection trait)
@Deprecated public static WKWebView appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
public static WKWebView appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
@Deprecated public static WKWebView appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
public static WKWebView appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
public static boolean areAnimationsEnabled()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void beginAnimationsContext(java.lang.String animationID,
org.moe.natj.general.ptr.VoidPtr context)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static void clearTextInputContextIdentifier(java.lang.String identifier)
public static void commitAnimations()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static double inheritedAnimationDuration()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static org.moe.natj.objc.Class layerClass()
public static WKWebView new_objc()
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation,
NSArray<? extends UIView> views,
long options,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
public static void performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)
public static boolean requiresConstraintBasedLayout()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
public static void setAnimationCurve(long curve)
public static void setAnimationDelay(double delay)
public static void setAnimationDelegate(java.lang.Object delegate)
public static void setAnimationDidStopSelector(org.moe.natj.objc.SEL selector)
public static void setAnimationDuration_static(double duration)
public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
public static void setAnimationRepeatCount_static(float repeatCount)
public static void setAnimationStartDate(NSDate startDate)
public static void setAnimationTransitionForViewCache(long transition,
UIView view,
boolean cache)
public static void setAnimationWillStartSelector(org.moe.natj.objc.SEL selector)
public static void setAnimationsEnabled(boolean enabled)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static void transitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
public static void transitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)
public static long userInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)
public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute,
long layoutDirection)
public static long version_static()
public WKUIDelegate UIDelegate()
public NSURL 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.
public boolean allowsBackForwardNavigationGestures()
The default value is NO.
public boolean allowsLinkPreview()
The default value is YES on Mac and iOS.
public WKWebView _appearance()
UIAppearanceNote 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.
_appearance in interface UIAppearance_appearance in class UIViewpublic WKWebView _appearanceForTraitCollection(UITraitCollection trait)
_appearanceForTraitCollection in interface UIAppearance_appearanceForTraitCollection in class UIView@Deprecated public WKWebView _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
_appearanceForTraitCollectionWhenContainedIn in interface UIAppearance_appearanceForTraitCollectionWhenContainedIn in class UIViewpublic WKWebView _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses in interface UIAppearance_appearanceForTraitCollectionWhenContainedInInstancesOfClasses in class UIView@Deprecated public WKWebView _appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
UIAppearance[[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.
_appearanceWhenContainedIn in interface UIAppearance_appearanceWhenContainedIn in class UIViewpublic WKWebView _appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
_appearanceWhenContainedInInstancesOfClasses in interface UIAppearance_appearanceWhenContainedInInstancesOfClasses in class UIViewpublic WKBackForwardList backForwardList()
public boolean canGoBack()
[@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
backForwardList.public boolean canGoForward()
[@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
backForwardList.public NSArray<?> certificateChain()
public WKWebViewConfiguration configuration()
public java.lang.String customUserAgent()
public double estimatedProgress()
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.
public void evaluateJavaScriptCompletionHandler(java.lang.String javaScriptString,
WKWebView.Block_evaluateJavaScriptCompletionHandler completionHandler)
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`
javaScriptString - The JavaScript string to evaluate.completionHandler - A block to invoke when script evaluation completes or fails.public WKNavigation goBack()
public WKNavigation goForward()
public WKNavigation goToBackForwardListItem(WKBackForwardListItem item)
item - The item to which to navigate. Must be one of the items in the
web view's back-forward list.backForwardListpublic boolean hasOnlySecureContent()
[@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
public WKWebView initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class UIViewpublic WKWebView initWithFrame(CGRect frame)
initWithFrame in class UIViewpublic WKWebView initWithFrameConfiguration(CGRect frame, WKWebViewConfiguration 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.
frame - The frame for the new web view.configuration - The configuration for the new web view.public boolean isLoading()
[@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
public WKNavigation loadDataMIMETypeCharacterEncodingNameBaseURL(NSData data, java.lang.String MIMEType, java.lang.String characterEncodingName, NSURL baseURL)
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.public WKNavigation loadFileURLAllowingReadAccessToURL(NSURL URL, NSURL readAccessURL)
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.
URL - The file URL to which to navigate.readAccessURL - The URL to allow read access to.public WKNavigation loadHTMLStringBaseURL(java.lang.String string, NSURL baseURL)
string - The string to use as the contents of the webpage.baseURL - A URL that is used to resolve relative URLs within the document.public WKNavigation loadRequest(NSURLRequest request)
request - The request specifying the URL to which to navigate.public WKNavigationDelegate navigationDelegate()
public WKNavigation reload()
public WKNavigation reloadFromOrigin()
public UIScrollView scrollView()
public SecTrustRef serverTrust()
[@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
public void setAllowsBackForwardNavigationGestures(boolean value)
The default value is NO.
public void setAllowsLinkPreview(boolean value)
The default value is YES on Mac and iOS.
public void setCustomUserAgent(java.lang.String value)
public void setNavigationDelegate_unsafe(WKNavigationDelegate value)
public void setNavigationDelegate(WKNavigationDelegate value)
public void setUIDelegate_unsafe(WKUIDelegate value)
public void setUIDelegate(WKUIDelegate value)
public void stopLoading()
public java.lang.String title()
[@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
public static boolean handlesURLScheme(java.lang.String urlScheme)
scheme - The URL scheme to check.public static void modifyAnimationsWithRepeatCountAutoreversesAnimations(double count,
boolean autoreverses,
UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
public void takeSnapshotWithConfigurationCompletionHandler(WKSnapshotConfiguration snapshotConfiguration, WKWebView.Block_takeSnapshotWithConfigurationCompletionHandler completionHandler)
public void callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler(java.lang.String functionBody,
NSDictionary<java.lang.String,?> arguments,
WKFrameInfo frame,
WKContentWorld contentWorld,
WKWebView.Block_callAsyncJavaScriptArgumentsInFrameInContentWorldCompletionHandler completionHandler)
public void createPDFWithConfigurationCompletionHandler(WKPDFConfiguration pdfConfiguration, WKWebView.Block_createPDFWithConfigurationCompletionHandler completionHandler)
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.
pdfConfiguration - An object that specifies how the PDF capture is configured.completionHandler - A block to invoke when the pdf document data is ready.public void createWebArchiveDataWithCompletionHandler(WKWebView.Block_createWebArchiveDataWithCompletionHandler completionHandler)
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.
completionHandler - A block to invoke when the web archive data is ready.public void evaluateJavaScriptInFrameInContentWorldCompletionHandler(java.lang.String javaScriptString,
WKFrameInfo frame,
WKContentWorld contentWorld,
WKWebView.Block_evaluateJavaScriptInFrameInContentWorldCompletionHandler completionHandler)
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.
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.public void findStringWithConfigurationCompletionHandler(java.lang.String string,
WKFindConfiguration configuration,
WKWebView.Block_findStringWithConfigurationCompletionHandler completionHandler)
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.
string - The string to search for.configuration - A set of options configuring the search.completionHandler - A block to invoke when the search completes.public java.lang.String mediaType()
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.
public double pageZoom()
The default value is 1.0. Changing this value is equivalent to web content setting the CSS "zoom" property on all page content.
public void setMediaType(java.lang.String value)
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.
public void setPageZoom(double value)
The default value is 1.0. Changing this value is equivalent to web content setting the CSS "zoom" property on all page content.
public long cameraCaptureState()
[@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
public void closeAllMediaPresentations()
public void closeAllMediaPresentationsWithCompletionHandler(WKWebView.Block_closeAllMediaPresentationsWithCompletionHandler completionHandler)
Includes picture-in-picture and fullscreen.
public java.lang.Object interactionState()
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.
public WKNavigation loadFileRequestAllowingReadAccessToURL(NSURLRequest request, NSURL readAccessURL)
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.
request - The request specifying the file URL to which to navigate.readAccessURL - The URL to allow read access to.public WKNavigation loadSimulatedRequestResponseResponseData(NSURLRequest request, NSURLResponse response, NSData data)
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.public WKNavigation loadSimulatedRequestResponseHTMLString(NSURLRequest request, java.lang.String string)
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.public WKNavigation loadSimulatedRequestWithResponseResponseData(NSURLRequest request, NSURLResponse response, NSData data)
public WKNavigation loadSimulatedRequestWithResponseHTMLString(NSURLRequest request, java.lang.String string)
public long microphoneCaptureState()
[@link] WKWebView @/link is key-value observing (KVO) compliant for this property.
public void pauseAllMediaPlayback(WKWebView.Block_pauseAllMediaPlayback completionHandler)
public void pauseAllMediaPlaybackWithCompletionHandler(WKWebView.Block_pauseAllMediaPlaybackWithCompletionHandler completionHandler)
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.
public void requestMediaPlaybackState(WKWebView.Block_requestMediaPlaybackState completionHandler)
public void requestMediaPlaybackStateWithCompletionHandler(WKWebView.Block_requestMediaPlaybackStateWithCompletionHandler completionHandler)
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.
completionHandler - A block to invoke with the return value of the function call.public void resumeAllMediaPlayback(WKWebView.Block_resumeAllMediaPlayback completionHandler)
public void resumeDownloadFromResumeDataCompletionHandler(NSData resumeData, WKWebView.Block_resumeDownloadFromResumeDataCompletionHandler completionHandler)
The download needs its delegate to be set in the completionHandler to receive updates about its progress.
resumeData - Data from a WKDownloadDelegate's didFailWithError or a WKDownload's cancel completionHandler.completionHandler - A block called when the download has resumed.public void setAllMediaPlaybackSuspendedCompletionHandler(boolean suspended,
WKWebView.Block_setAllMediaPlaybackSuspendedCompletionHandler completionHandler)
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.
suspended - Whether media playback should be suspended or resumed.public void setCameraCaptureStateCompletionHandler(long state,
WKWebView.Block_setCameraCaptureStateCompletionHandler completionHandler)
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.
state - State to apply for capture.completionHandler - A block to invoke after the camera state has been changed.public void setInteractionState(java.lang.Object value)
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.
public void setMicrophoneCaptureStateCompletionHandler(long state,
WKWebView.Block_setMicrophoneCaptureStateCompletionHandler completionHandler)
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.
state - state to apply for capture.completionHandler - A block to invoke after the camera state has been changed.public void setUnderPageBackgroundColor(UIColor value)
public void startDownloadUsingRequestCompletionHandler(NSURLRequest request, WKWebView.Block_startDownloadUsingRequestCompletionHandler completionHandler)
The download needs its delegate to be set in the completionHandler to receive updates about its progress.
request - The request specifying the URL to download.completionHandler - A block called when the download has started.public void suspendAllMediaPlayback(WKWebView.Block_suspendAllMediaPlayback completionHandler)
public UIColor themeColor()
public UIColor underPageBackgroundColor()