public class WKWebView extends UIView
NoIntrinsicMetric
Constructor and Description |
---|
WKWebView() |
WKWebView(CGRect frame) |
WKWebView(CGRect frame,
WKWebViewConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsBackForwardNavigationGestures() |
boolean |
allowsLinkPreview() |
boolean |
canGoBack()
Informs if this Web View could go back in history
|
boolean |
canGoForward()
Informs if this Web View could go forward in history
|
WKWebViewConfiguration |
configuration() |
String |
customUserAgent() |
void |
drawRect(CGRect rect)
This method is implicitly called when a view is first displayed or when
an event occurs that invalidates a visible part of the view and the view
needs to be redrawn.
|
double |
estimatedProgress() |
void |
evaluateJavaScript(String javaScriptString,
org.robovm.objc.block.VoidBlock2<Object,NSError> completionHandler)
Returns the result of running a script.
|
WKNavigation |
goBack()
Takes the previous location of the back-forward list and loads it to the
widget.
|
WKNavigation |
goForward()
Takes the next location of the back-forward list and loads it to the
widget.
|
boolean |
hasOnlySecureContent() |
boolean |
isLoading() |
WKNavigation |
loadData(NSData data,
String MIMEType,
String encodingName,
NSURL baseURL)
Loads the content of the main page as defined by the parameters.
|
WKNavigation |
loadFileURL(NSURL url,
NSURL readAccessURL) |
WKNavigation |
loadHTMLString(String data,
NSURL baseURL)
Sets the content of the main page as defined by the parameter data and
the base URL for the content.
|
WKNavigation |
loadRequest(NSURLRequest request)
Loads the URL parameter asynchronously.
|
WKNavigationDelegate |
navigationDelegate() |
WKNavigation |
reload()
Reloads the page.
|
UIScrollView |
scrollView()
Returns the scroll view of the web view.
|
void |
setNavigationDelegate(WKNavigationDelegate navigationDelegate) |
String |
title() |
void |
touchesBegan(Set<UITouch> touches,
UIEvent event)
Sent to this responder when one or more fingers touched the screen.
|
void |
touchesCancelled(Set<UITouch> touches,
UIEvent event)
Sent to this responder when touch event has been canceled.
|
void |
touchesEnded(Set<UITouch> touches,
UIEvent event)
Sent to this responder when one or more fingers were lifted from the
screen.
|
void |
touchesMoved(Set<UITouch> touches,
UIEvent event)
Sent to this responder when one or more fingers move on the screen.
|
NSURL |
URL() |
accessibilityIdentifier, addConstraint, addConstraints, addGestureRecognizer, addLayoutGuide, addSubview, alpha, animateWithDuration, animateWithDuration, animateWithDuration, areAnimationsEnabled, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, center, centerXAnchor, centerYAnchor, clipsToBounds, constraints, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, convertPointFromView, convertPointToView, convertRectFromView, convertRectToView, didAddSubview, didMoveToSuperview, didMoveToWindow, frame, gestureRecognizers, heightAnchor, hitTest, insertSubview, insetsLayoutMarginsFromSafeArea, intrinsicContentSize, invalidateIntrinsicContentSize, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, layer, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSubviews, leadingAnchor, leftAnchor, maskView, needsUpdateConstraints, nextResponder, overrideUserInterfaceStyle, pointInside, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeLayoutGuide, requiresConstraintBasedLayout, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaLayoutGuide, sendSubviewToBack, setAccessibilityIdentifier, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDuration, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setLayoutMargins, setMaskView, setMultipleTouchEnabled, setNeedsDisplay, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, sizeThatFits, sizeToFit, subviews, superview, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, toString, trailingAnchor, transform, transitionWithView, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, userInterfaceLayoutDirection, viewForFirstBaselineLayout, viewForLastBaselineLayout, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
becomeFirstResponder, isFirstResponder, resignFirstResponder
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public WKWebView()
public WKWebView(CGRect frame)
public WKWebView(CGRect frame, WKWebViewConfiguration configuration)
public WKWebViewConfiguration configuration()
public WKNavigationDelegate navigationDelegate()
public void setNavigationDelegate(WKNavigationDelegate navigationDelegate)
public String customUserAgent()
public NSURL URL()
public String title()
public double estimatedProgress()
public boolean hasOnlySecureContent()
public boolean isLoading()
public boolean allowsBackForwardNavigationGestures()
public boolean canGoBack()
public boolean canGoForward()
public WKNavigation goBack()
public WKNavigation goForward()
public WKNavigation loadHTMLString(String data, NSURL baseURL)
data
- The content of the main page.baseURL
- The base URL of the content.public WKNavigation loadData(NSData data, String MIMEType, String encodingName, NSURL baseURL)
data
- The content of the main page.MIMEType
- The MIME type of the content.encodingName
- The encoding type.baseURL
- The base URL of the content.public WKNavigation loadFileURL(NSURL url, NSURL readAccessURL)
public WKNavigation loadRequest(NSURLRequest request)
request
- The URL of the content to be loaded.public WKNavigation reload()
public boolean allowsLinkPreview()
public void evaluateJavaScript(String javaScriptString, org.robovm.objc.block.VoidBlock2<Object,NSError> completionHandler)
javaScriptString
- The script to run.public UIScrollView scrollView()
public void touchesBegan(Set<UITouch> touches, UIEvent event)
UIResponder
touchesBegan
in class UIResponder
touches
- The set touches to which the touch or touches belongs.event
- The event to which the touches belong.public void touchesMoved(Set<UITouch> touches, UIEvent event)
UIResponder
touchesMoved
in class UIResponder
touches
- The set touches to which the touch or touches belongs.event
- The event to which the touches belong.public void touchesEnded(Set<UITouch> touches, UIEvent event)
UIResponder
touchesEnded
in class UIResponder
touches
- The set touches to which the touch or touches belongs.event
- The event to which the touches belong.public void touchesCancelled(Set<UITouch> touches, UIEvent event)
UIResponder
touchesCancelled
in class UIResponder
touches
- The set touches to which the touch belongs.event
- The event to which the touches belong.Copyright © 2020. All rights reserved.