IWKUIDelegate
CommitPreviewingViewController(WKWebView, UIViewController)
ContextMenuDidEnd(WKWebView, WKContextMenuElementInfo)
ContextMenuWillPresent(WKWebView, WKContextMenuElementInfo)
CreateWebView(WKWebView, WKWebViewConfiguration, WKNavigationAction, WKWindowFeatures)
DidClose(WKWebView)
GetPreviewingViewController(WKWebView, WKPreviewElementInfo, IWKPreviewActionItem[])
RequestDeviceOrientationAndMotionPermission(WKWebView, WKSecurityOrigin, WKFrameInfo, Action<WKPermissionDecision>)
RequestDeviceOrientationAndMotionPermissionAsync(WKWebView, WKSecurityOrigin, WKFrameInfo)
RequestMediaCapturePermission(WKWebView, WKSecurityOrigin, WKFrameInfo, WKMediaCaptureType, Action<WKPermissionDecision>)
RequestMediaCapturePermissionAsync(WKWebView, WKSecurityOrigin, WKFrameInfo, WKMediaCaptureType)
RunJavaScriptAlertPanel(WKWebView, String, WKFrameInfo, Action)
RunJavaScriptConfirmPanel(WKWebView, String, WKFrameInfo, Action<Boolean>)
RunJavaScriptTextInputPanel(WKWebView, String, String, WKFrameInfo, Action<String>)
RunOpenPanel(WKWebView, WKOpenPanelParameters, WKFrameInfo, Action<NSUrl[]>)
SetContextMenuConfiguration(WKWebView, WKContextMenuElementInfo, Action<UIContextMenuConfiguration>)
ShouldPreviewElement(WKWebView, WKPreviewElementInfo)
ShowLockDownMode(WKWebView, String, Action<WKDialogResult>)
ShowLockDownModeAsync(WKWebView, String)
WillCommitContextMenu(WKWebView, WKContextMenuElementInfo, IUIContextMenuInteractionCommitAnimating)
WillDismissEditMenu(WKWebView, IUIEditMenuInteractionAnimating)
WillPresentEditMenu(WKWebView, IUIEditMenuInteractionAnimating)
CommitPreviewingViewController(IWKUIDelegate, WKWebView, UIViewController)
ContextMenuDidEnd(IWKUIDelegate, WKWebView, WKContextMenuElementInfo)
ContextMenuWillPresent(IWKUIDelegate, WKWebView, WKContextMenuElementInfo)
CreateWebView(IWKUIDelegate, WKWebView, WKWebViewConfiguration, WKNavigationAction, WKWindowFeatures)
DidClose(IWKUIDelegate, WKWebView)
GetPreviewingViewController(IWKUIDelegate, WKWebView, WKPreviewElementInfo, IWKPreviewActionItem[])
RequestDeviceOrientationAndMotionPermission(IWKUIDelegate, WKWebView, WKSecurityOrigin, WKFrameInfo, Action<WKPermissionDecision>)
RequestDeviceOrientationAndMotionPermissionAsync(IWKUIDelegate, WKWebView, WKSecurityOrigin, WKFrameInfo)
RequestMediaCapturePermission(IWKUIDelegate, WKWebView, WKSecurityOrigin, WKFrameInfo, WKMediaCaptureType, Action<WKPermissionDecision>)
RequestMediaCapturePermissionAsync(IWKUIDelegate, WKWebView, WKSecurityOrigin, WKFrameInfo, WKMediaCaptureType)
RunJavaScriptAlertPanel(IWKUIDelegate, WKWebView, String, WKFrameInfo, Action)
RunJavaScriptConfirmPanel(IWKUIDelegate, WKWebView, String, WKFrameInfo, Action<Boolean>)
RunJavaScriptTextInputPanel(IWKUIDelegate, WKWebView, String, String, WKFrameInfo, Action<String>)
RunOpenPanel(IWKUIDelegate, WKWebView, WKOpenPanelParameters, WKFrameInfo, Action<NSUrl[]>)
SetContextMenuConfiguration(IWKUIDelegate, WKWebView, WKContextMenuElementInfo, Action<UIContextMenuConfiguration>)
ShouldPreviewElement(IWKUIDelegate, WKWebView, WKPreviewElementInfo)
ShowLockDownMode(IWKUIDelegate, WKWebView, String, Action<WKDialogResult>)
ShowLockDownModeAsync(IWKUIDelegate, WKWebView, String)
WillCommitContextMenu(IWKUIDelegate, WKWebView, WKContextMenuElementInfo, IUIContextMenuInteractionCommitAnimating)
WillDismissEditMenu(IWKUIDelegate, WKWebView, IUIEditMenuInteractionAnimating)
WillPresentEditMenu(IWKUIDelegate, WKWebView, IUIEditMenuInteractionAnimating)
net10.0-ios17.2
namespace WebKit
{
[Protocol(Name = "WKUIDelegate", WrapperType = typeof(WKUIDelegateWrapper))]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidClose", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(WKWebView) }, Selector = "webViewDidClose:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "CommitPreviewingViewController", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(UIViewController) }, Selector = "webView:commitPreviewingViewController:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillCommitContextMenu", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKContextMenuElementInfo), typeof(IUIContextMenuInteractionCommitAnimating) }, Selector = "webView:contextMenuForElement:willCommitWithAnimator:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ContextMenuWillPresent", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKContextMenuElementInfo) }, Selector = "webView:contextMenuWillPresentForElement:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ContextMenuDidEnd", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKContextMenuElementInfo) }, Selector = "webView:contextMenuDidEndForElement:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillPresentEditMenu", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(IUIEditMenuInteractionAnimating) }, Selector = "webView:willPresentEditMenuWithAnimator:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillDismissEditMenu", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(IUIEditMenuInteractionAnimating) }, Selector = "webView:willDismissEditMenuWithAnimator:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "CreateWebView", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKWebViewConfiguration), typeof(WKNavigationAction), typeof(WKWindowFeatures) }, ReturnType = typeof(WKWebView), Selector = "webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "RunJavaScriptAlertPanel", ParameterBlockProxy = new[] { null, null, null, typeof(NIDAction) }, ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(string), typeof(WKFrameInfo), typeof(Action) }, Selector = "webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "RunJavaScriptConfirmPanel", ParameterBlockProxy = new[] { null, null, null, typeof(NIDActionArity1V4) }, ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(string), typeof(WKFrameInfo), typeof(Action<bool>) }, Selector = "webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "RunJavaScriptTextInputPanel", ParameterBlockProxy = new[] { null, null, null, null, typeof(NIDActionArity1V72) }, ParameterByRef = new[] { false, false, false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(string), typeof(string), typeof(WKFrameInfo), typeof(Action<string>) }, Selector = "webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "RunOpenPanel", ParameterBlockProxy = new[] { null, null, null, typeof(NIDActionArity1V260) }, ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKOpenPanelParameters), typeof(WKFrameInfo), typeof(Action<NSUrl[]>) }, Selector = "webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldPreviewElement", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKPreviewElementInfo) }, ReturnType = typeof(bool), Selector = "webView:shouldPreviewElement:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "GetPreviewingViewController", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKPreviewElementInfo), typeof(IWKPreviewActionItem[]) }, ReturnType = typeof(UIViewController), Selector = "webView:previewingViewControllerForElement:defaultActions:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "SetContextMenuConfiguration", ParameterBlockProxy = new[] { null, null, typeof(NIDActionArity1V284) }, ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKContextMenuElementInfo), typeof(Action<UIContextMenuConfiguration>) }, Selector = "webView:contextMenuConfigurationForElement:completionHandler:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "RequestDeviceOrientationAndMotionPermission", ParameterBlockProxy = new[] { null, null, null, typeof(NIDActionArity1V285) }, ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKSecurityOrigin), typeof(WKFrameInfo), typeof(Action<WKPermissionDecision>) }, Selector = "webView:requestDeviceOrientationAndMotionPermissionForOrigin:initiatedByFrame:decisionHandler:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "RequestMediaCapturePermission", ParameterBlockProxy = new[] { null, null, null, null, typeof(NIDActionArity1V285) }, ParameterByRef = new[] { false, false, false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(WKSecurityOrigin), typeof(WKFrameInfo), typeof(WKMediaCaptureType), typeof(Action<WKPermissionDecision>) }, Selector = "webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShowLockDownMode", ParameterBlockProxy = new[] { null, null, typeof(NIDActionArity1V286) }, ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(WKWebView), typeof(string), typeof(Action<WKDialogResult>) }, Selector = "webView:showLockdownModeFirstUseMessage:completionHandler:")]
[SupportedOSPlatform("maccatalyst")]
[SupportedOSPlatform("ios")]
[SupportedOSPlatform("macos")]
public interface IWKUIDelegate : INativeObject, IDisposable
{
[BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export("webView:commitPreviewingViewController:")]
[ObsoletedOSPlatform("ios13.0", "Use 'WillCommitContextMenu' instead.")]
[ObsoletedOSPlatform("maccatalyst13.1", "Use 'WillCommitContextMenu' instead.")]
[OptionalMember]
[SupportedOSPlatform("maccatalyst")]
[SupportedOSPlatform("ios")]
[UnsupportedOSPlatform("macos")]
virtual void CommitPreviewingViewController(WKWebView! webView, UIViewController! previewingViewController);
}
}
| .NET | 10.0 |
|---|---|
Information specific to net10.0 | |
| Platforms | This API is only available when you target a specific platform: |
| iOS | 10.010.110.210.311.011.111.211.311.412.012.112.212.312.413.013.113.213.313.413.513.614.014.114.214.314.414.515.015.215.416.016.116.216.417.017.2 |
| Mac Catalyst | 13.113.213.313.413.514.214.314.414.515.015.215.416.116.216.417.017.2 |
Information specific to net10.0-ios17.2 | |
| Assembly | Microsoft.iOS , Version=18.5.0.0, PublicKeyToken=84e04ff9cfb79065 |
| Referencing | The API is automatically referenced. |
| Preview | The API is contained in a preview framework. |
| Platform Restrictions | This API is only supported on the following platforms:
|
- Built-in API
- Package-provided API