Package org.robovm.apple.webkit
Class WKWebView
- All Implemented Interfaces:
CALayerDelegate,NSCoding,NSObjectProtocol,UIAccessibilityIdentification,UIActivityItemsConfigurationProviding,UIAppearanceContainer,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UITraitEnvironment,UIUserActivityRestoring,ObjCProtocol
public class WKWebView extends UIView
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWKWebView.WKWebViewPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description WKWebView()WKWebView(CGRect frame)WKWebView(CGRect frame, WKWebViewConfiguration configuration)WKWebView(NSCoder coder)protectedWKWebView(NSObject.Handle h, long handle)protectedWKWebView(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.uikit.UIView
addConstraint, addConstraints, addGestureRecognizer, addInteraction, addKeyframe, addLayoutGuide, addMotionEffect, addSubview, animate, animate, animate, animate, animateKeyframes, areAnimationsEnabled, autoresizesSubviews, beginAnimations, bringSubviewToFront, canBecomeFocused, clearsContextBeforeDrawing, clipsToBounds, commitAnimations, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, decodeRestorableState, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocus, displayLayer, draw, draw, drawLayer, drawViewHierarchy, encode, encodeRestorableState, endEditing, exchangeSubview, exerciseAmbiguityInLayout, focusItemsInRect, gestureRecognizerShouldBegin, getAccessibilityIdentifier, getAction, getAlignmentRectForFrame, getAlignmentRectInsets, getAlpha, getAppliedContentSizeCategoryLimitsDescription, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusEffect, getFocusGroupIdentifier, getFocusGroupPriority, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getKeyboardLayoutGuide, getLargeContentImage, getLargeContentImageInsets, getLargeContentTitle, getLastBaselineAnchor, getLayer, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMaximumContentSizeCategory, getMinimumContentSizeCategory, getMotionEffects, getOverrideUserInterfaceStyle, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTintColor, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getTransform3D, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, init, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, isScalesLargeContentImage, isTransparentFocusItem, isUserInteractionEnabled, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, modifyAnimations, needsUpdateConstraints, NoIntrinsicMetric, performSystemAnimation, performWithoutAnimation, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, requiresConstraintBasedLayout, safeAreaInsetsDidChange, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDelegate, setAnimationDidStopSelector, setAnimationDurationInSeconds, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAnimationTransition, setAnimationWillStartSelector, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setContentScaleFactor, setDirectionalLayoutMargins, setExclusiveTouch, setFocusEffect, setFocusGroupIdentifier, setFocusGroupPriority, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLargeContentImage, setLargeContentImageInsets, setLargeContentTitle, setLayoutMargins, setMaskView, setMaximumContentSizeCategory, setMinimumContentSizeCategory, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setScalesLargeContentImage, setSemanticContentAttribute, setShowsLargeContentViewer, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTransform3D, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocus, showsLargeContentViewer, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubviewMethods inherited from class org.robovm.apple.uikit.UIResponder
becomeFirstResponder, buildMenu, canBecomeFirstResponder, canPasteItemProviders, canPerformAction, canResignFirstResponder, captureTextFromCamera, clearTextInputContextIdentifier, copy, cut, decreaseSize, delete, getActionTarget, getActivityItemsConfiguration, getEditingInteractionConfiguration, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getPasteConfiguration, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, increaseSize, isFirstResponder, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBegan, motionCancelled, motionEnded, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteItemProviders, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, print, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, toggleBoldface, toggleItalics, toggleUnderline, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateTextAttributes, updateUserActivityState, validateCommandMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
Method Details
-
getConfiguration
-
getNavigationDelegate
-
setNavigationDelegate
-
getUIDelegate
-
setUIDelegate
-
getBackForwardList
-
getTitle
-
getURL
-
isLoading
public boolean isLoading() -
getEstimatedProgress
public double getEstimatedProgress() -
hasOnlySecureContent
public boolean hasOnlySecureContent() -
getServerTrust
- Since:
- Available in iOS 10.0 and later.
-
canGoBack
public boolean canGoBack() -
canGoForward
public boolean canGoForward() -
getCameraCaptureState
- Since:
- Available in iOS 15.0 and later.
-
getMicrophoneCaptureState
- Since:
- Available in iOS 15.0 and later.
-
allowsBackForwardNavigationGestures
public boolean allowsBackForwardNavigationGestures() -
setAllowsBackForwardNavigationGestures
public void setAllowsBackForwardNavigationGestures(boolean v) -
getCustomUserAgent
- Since:
- Available in iOS 9.0 and later.
-
setCustomUserAgent
- Since:
- Available in iOS 9.0 and later.
-
allowsLinkPreview
public boolean allowsLinkPreview()- Since:
- Available in iOS 9.0 and later.
-
setAllowsLinkPreview
public void setAllowsLinkPreview(boolean v)- Since:
- Available in iOS 9.0 and later.
-
getScrollView
-
getPageZoom
public double getPageZoom()- Since:
- Available in iOS 14.0 and later.
-
setPageZoom
public void setPageZoom(double v)- Since:
- Available in iOS 14.0 and later.
-
getMediaType
- Since:
- Available in iOS 14.0 and later.
-
setMediaType
- Since:
- Available in iOS 14.0 and later.
-
getInteractionState
- Since:
- Available in iOS 15.0 and later.
-
setInteractionState
- Since:
- Available in iOS 15.0 and later.
-
getThemeColor
- Since:
- Available in iOS 15.0 and later.
-
getUnderPageBackgroundColor
- Since:
- Available in iOS 15.0 and later.
-
setUnderPageBackgroundColor
- Since:
- Available in iOS 15.0 and later.
-
getLayerClass
-
getCertificateChain
Deprecated.Deprecated in iOS 10.0. Use serverTrust- Since:
- Available in iOS 9.0 and later.
-
init
-
init
-
loadRequest
-
loadFileURL
- Since:
- Available in iOS 9.0 and later.
-
loadHTMLString
-
loadData
public WKNavigation loadData(NSData data, String MIMEType, String characterEncodingName, NSURL baseURL)- Since:
- Available in iOS 9.0 and later.
-
goToBackForwardListItem
-
goBack
-
goForward
-
reload
-
reloadFromOrigin
-
stopLoading
public void stopLoading() -
evaluateJavaScript
public void evaluateJavaScript(String javaScriptString, VoidBlock2<NSObject,NSError> completionHandler) -
evaluateJavaScript
public void evaluateJavaScript(String javaScriptString, WKFrameInfo frame, WKContentWorld contentWorld, VoidBlock2<NSObject,NSError> completionHandler)- Since:
- Available in iOS 14.0 and later.
-
callAsyncJavaScript
public void callAsyncJavaScript(String functionBody, NSDictionary<NSString,?> arguments, WKFrameInfo frame, WKContentWorld contentWorld, VoidBlock2<NSObject,NSError> completionHandler)- Since:
- Available in iOS 14.0 and later.
-
closeAllMediaPresentations
- Since:
- Available in iOS 15.0 and later.
-
closeAllMediaPresentations
Deprecated.Deprecated in iOS 15.0. Use closeAllMediaPresentationsWithCompletionHandler:- Since:
- Available in iOS 14.5 and later.
-
pauseAllMediaPlayback
- Since:
- Available in iOS 15.0 and later.
-
setAllMediaPlaybackSuspended
- Since:
- Available in iOS 15.0 and later.
-
resumeAllMediaPlayback
Deprecated.Deprecated in iOS 15.0. Use setAllMediaPlaybackSuspended:completionHandler:- Since:
- Available in iOS 14.5 and later.
-
suspendAllMediaPlayback
Deprecated.Deprecated in iOS 15.0. Use setAllMediaPlaybackSuspended:completionHandler:- Since:
- Available in iOS 14.5 and later.
-
requestMediaPlaybackState
- Since:
- Available in iOS 15.0 and later.
-
setCameraCaptureState
- Since:
- Available in iOS 15.0 and later.
-
setMicrophoneCaptureState
- Since:
- Available in iOS 15.0 and later.
-
takeSnapshot
public void takeSnapshot(WKSnapshotConfiguration snapshotConfiguration, VoidBlock2<UIImage,NSError> completionHandler)- Since:
- Available in iOS 11.0 and later.
-
createPDF
public void createPDF(WKPDFConfiguration pdfConfiguration, VoidBlock2<NSData,NSError> completionHandler)- Since:
- Available in iOS 14.0 and later.
-
createWebArchiveData
- Since:
- Available in iOS 14.0 and later.
-
findString
public void findString(String string, WKFindConfiguration configuration, VoidBlock1<WKFindResult> completionHandler)- Since:
- Available in iOS 14.0 and later.
-
startDownload
- Since:
- Available in iOS 14.5 and later.
-
resumeDownload
- Since:
- Available in iOS 14.5 and later.
-
loadSimulatedRequest
public WKNavigation loadSimulatedRequest(NSURLRequest request, NSURLResponse response, NSData data)- Since:
- Available in iOS 15.0 and later.
-
loadFileRequest
- Since:
- Available in iOS 15.0 and later.
-
loadSimulatedRequest
- Since:
- Available in iOS 15.0 and later.
-
loadSimulatedReques
Deprecated.Deprecated in iOS 15.0. Use loadSimulatedRequest:responseHTMLString:- Since:
- Available in iOS 15.0 and later.
-
handlesURLScheme
- Since:
- Available in iOS 11.0 and later.
-
getUserInterfaceLayoutDirection
public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute attribute)- Since:
- Available in iOS 9.0 and later.
-
getUserInterfaceLayoutDirection
public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)- Since:
- Available in iOS 10.0 and later.
-