Package org.robovm.apple.webkit
Class WKUIDelegateAdapter
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.webkit.WKUIDelegateAdapter
- All Implemented Interfaces:
NSObjectProtocol,WKUIDelegate,ObjCProtocol
public class WKUIDelegateAdapter extends NSObject implements WKUIDelegate
-
Nested Class Summary
Nested 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 Constructor Description WKUIDelegateAdapter() -
Method Summary
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, 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
-
WKUIDelegateAdapter
public WKUIDelegateAdapter()
-
-
Method Details
-
createWebView
public WKWebView createWebView(WKWebView webView, WKWebViewConfiguration configuration, WKNavigationAction navigationAction, WKWindowFeatures windowFeatures)- Specified by:
createWebViewin interfaceWKUIDelegate
-
didClose
- Specified by:
didClosein interfaceWKUIDelegate- Since:
- Available in iOS 9.0 and later.
-
runJavaScriptAlertPanel
public void runJavaScriptAlertPanel(WKWebView webView, String message, WKFrameInfo frame, Runnable completionHandler)- Specified by:
runJavaScriptAlertPanelin interfaceWKUIDelegate
-
runJavaScriptConfirmPanel
public void runJavaScriptConfirmPanel(WKWebView webView, String message, WKFrameInfo frame, VoidBooleanBlock completionHandler)- Specified by:
runJavaScriptConfirmPanelin interfaceWKUIDelegate
-
runJavaScriptTextInputPanel
public void runJavaScriptTextInputPanel(WKWebView webView, String prompt, String defaultText, WKFrameInfo frame, VoidBlock1<NSString> completionHandler)- Specified by:
runJavaScriptTextInputPanelin interfaceWKUIDelegate
-
requestMediaCapturePermission
public void requestMediaCapturePermission(WKWebView webView, WKSecurityOrigin origin, WKFrameInfo frame, WKMediaCaptureType type, VoidBlock1<WKPermissionDecision> decisionHandler)- Specified by:
requestMediaCapturePermissionin interfaceWKUIDelegate- Since:
- Available in iOS 15.0 and later.
-
requestDeviceOrientationAndMotionPermission
public void requestDeviceOrientationAndMotionPermission(WKWebView webView, WKSecurityOrigin origin, WKFrameInfo frame, VoidBlock1<WKPermissionDecision> decisionHandler)- Specified by:
requestDeviceOrientationAndMotionPermissionin interfaceWKUIDelegate- Since:
- Available in iOS 15.0 and later.
-
shouldPreviewElement
@Deprecated public boolean shouldPreviewElement(WKWebView webView, WKPreviewElementInfo elementInfo)Deprecated.Deprecated in iOS 13.0. Use webView:contextMenuConfigurationForElement:completionHandler:- Specified by:
shouldPreviewElementin interfaceWKUIDelegate- Since:
- Available in iOS 10.0 and later.
-
getPreviewingViewControllerForElement
@Deprecated public UIViewController getPreviewingViewControllerForElement(WKWebView webView, WKPreviewElementInfo elementInfo, NSArray<?> previewActions)Deprecated.Deprecated in iOS 13.0. Use webView:contextMenuConfigurationForElement:completionHandler:- Specified by:
getPreviewingViewControllerForElementin interfaceWKUIDelegate- Since:
- Available in iOS 10.0 and later.
-
commitPreviewingViewController
@Deprecated public void commitPreviewingViewController(WKWebView webView, UIViewController previewingViewController)Deprecated.Deprecated in iOS 13.0. Use webView:contextMenuForElement:willCommitWithAnimator:- Specified by:
commitPreviewingViewControllerin interfaceWKUIDelegate- Since:
- Available in iOS 10.0 and later.
-
getContextMenuConfiguration
public void getContextMenuConfiguration(WKWebView webView, WKContextMenuElementInfo elementInfo, VoidBlock1<UIContextMenuConfiguration> completionHandler)- Specified by:
getContextMenuConfigurationin interfaceWKUIDelegate- Since:
- Available in iOS 13.0 and later.
-
contextMenuWillPresent
- Specified by:
contextMenuWillPresentin interfaceWKUIDelegate- Since:
- Available in iOS 13.0 and later.
-
getContextMenu
public void getContextMenu(WKWebView webView, WKContextMenuElementInfo elementInfo, UIContextMenuInteractionCommitAnimating animator)- Specified by:
getContextMenuin interfaceWKUIDelegate- Since:
- Available in iOS 13.0 and later.
-
contextMenuDidEnd
- Specified by:
contextMenuDidEndin interfaceWKUIDelegate- Since:
- Available in iOS 13.0 and later.
-