Package org.robovm.apple.webkit
Class WKWebView
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIResponder
-
- org.robovm.apple.uikit.UIView
-
- org.robovm.apple.webkit.WKWebView
-
- All Implemented Interfaces:
CALayerDelegate
,NSCoding
,NSObjectProtocol
,UIAccessibility
,UIAccessibilityIdentification
,UIAppearanceContainer
,UICoordinateSpace
,UIDynamicItem
,UIFocusEnvironment
,UIFocusItem
,UIFocusItemContainer
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
public class WKWebView extends UIView
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WKWebView.WKWebViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIView
UIView.UIViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
Nested classes/interfaces inherited from class org.robovm.objc.ObjCObject
org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super
-
Nested classes/interfaces inherited from interface org.robovm.apple.uikit.UIAccessibility
UIAccessibility.Notifications
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description WKWebView()
WKWebView(CGRect frame)
WKWebView(CGRect frame, WKWebViewConfiguration configuration)
WKWebView(NSCoder coder)
protected
WKWebView(NSObject.Handle h, long handle)
protected
WKWebView(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, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getLastBaselineAnchor, getLayer, getLayerClass, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMotionEffects, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTintColor, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getUserInterfaceLayoutDirection, getUserInterfaceLayoutDirection, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, init, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, isUserInteractionEnabled, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, 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, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLayoutMargins, setMaskView, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setSemanticContentAttribute, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocus, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubview
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods 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, willChangeValues
-
-
-
-
Constructor Detail
-
WKWebView
public WKWebView()
-
WKWebView
protected WKWebView(NSObject.Handle h, long handle)
-
WKWebView
protected WKWebView(NSObject.SkipInit skipInit)
-
WKWebView
public WKWebView(CGRect frame, WKWebViewConfiguration configuration)
-
WKWebView
public WKWebView(NSCoder coder)
-
WKWebView
public WKWebView(CGRect frame)
-
-
Method Detail
-
getConfiguration
public WKWebViewConfiguration getConfiguration()
-
getNavigationDelegate
public WKNavigationDelegate getNavigationDelegate()
-
setNavigationDelegate
public void setNavigationDelegate(WKNavigationDelegate v)
-
getUIDelegate
public WKUIDelegate getUIDelegate()
-
setUIDelegate
public void setUIDelegate(WKUIDelegate v)
-
getBackForwardList
public WKBackForwardList getBackForwardList()
-
getTitle
public java.lang.String getTitle()
-
getURL
public NSURL getURL()
-
isLoading
public boolean isLoading()
-
getEstimatedProgress
public double getEstimatedProgress()
-
hasOnlySecureContent
public boolean hasOnlySecureContent()
-
getServerTrust
public SecTrust getServerTrust()
- Since:
- Available in iOS 10.0 and later.
-
canGoBack
public boolean canGoBack()
-
canGoForward
public boolean canGoForward()
-
allowsBackForwardNavigationGestures
public boolean allowsBackForwardNavigationGestures()
-
setAllowsBackForwardNavigationGestures
public void setAllowsBackForwardNavigationGestures(boolean v)
-
getCustomUserAgent
public java.lang.String getCustomUserAgent()
- Since:
- Available in iOS 9.0 and later.
-
setCustomUserAgent
public void setCustomUserAgent(java.lang.String v)
- 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
public UIScrollView getScrollView()
-
getCertificateChain
@Deprecated public java.util.List<SecCertificate> getCertificateChain()
Deprecated.Deprecated in iOS 10.0.- Since:
- Available in iOS 9.0 and later.
-
init
protected long init(CGRect frame, WKWebViewConfiguration configuration)
-
loadRequest
public WKNavigation loadRequest(NSURLRequest request)
-
loadFileURL
public WKNavigation loadFileURL(NSURL URL, NSURL readAccessURL)
- Since:
- Available in iOS 9.0 and later.
-
loadHTMLString
public WKNavigation loadHTMLString(java.lang.String string, NSURL baseURL)
-
loadData
public WKNavigation loadData(NSData data, java.lang.String MIMEType, java.lang.String characterEncodingName, NSURL baseURL)
- Since:
- Available in iOS 9.0 and later.
-
goToBackForwardListItem
public WKNavigation goToBackForwardListItem(WKBackForwardListItem item)
-
goBack
public WKNavigation goBack()
-
goForward
public WKNavigation goForward()
-
reload
public WKNavigation reload()
-
reloadFromOrigin
public WKNavigation reloadFromOrigin()
-
stopLoading
public void stopLoading()
-
evaluateJavaScript
public void evaluateJavaScript(java.lang.String javaScriptString, org.robovm.objc.block.VoidBlock2<NSObject,NSError> completionHandler)
-
takeSnapshot
public void takeSnapshot(WKSnapshotConfiguration snapshotConfiguration, org.robovm.objc.block.VoidBlock2<UIImage,NSError> completionHandler)
- Since:
- Available in iOS 11.0 and later.
-
handlesURLScheme
public static boolean handlesURLScheme(java.lang.String urlScheme)
- Since:
- Available in iOS 11.0 and later.
-
-