Szerkesztés

Megosztás a következőn keresztül:


WKUIDelegate_Extensions Class

Definition

Extension methods to the IWKUIDelegate interface to support all the methods from the WKUIDelegate protocol.

public static class WKUIDelegate_Extensions
type WKUIDelegate_Extensions = class
Inheritance
WKUIDelegate_Extensions

Remarks

The extension methods for IWKUIDelegate allow developers to treat instances of the interface as having all the optional methods of the original WKUIDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

CommitPreviewingViewController(IWKUIDelegate, WKWebView, UIViewController)

Method that is called to respond when the user pops a preview action.

CreateWebView(IWKUIDelegate, WKWebView, WKWebViewConfiguration, WKNavigationAction, WKWindowFeatures)

Creates and configures a new WKWebView.

DidClose(IWKUIDelegate, WKWebView)

Method that is called when webView closes.

GetPreviewingViewController(IWKUIDelegate, WKWebView, WKPreviewElementInfo, IWKPreviewActionItem[])

Method that is called when the user peeks at content.

RunJavaScriptAlertPanel(IWKUIDelegate, WKWebView, String, WKFrameInfo, Action)

Shows a JavaScript alert to the user.

RunJavaScriptConfirmPanel(IWKUIDelegate, WKWebView, String, WKFrameInfo, Action<Boolean>)

Shows a JavaScript confirmation dialog to the user.

RunJavaScriptTextInputPanel(IWKUIDelegate, WKWebView, String, String, WKFrameInfo, Action<String>)

Shows a JavaScript text input box to the user.

RunOpenPanel(IWKUIDelegate, WKWebView, WKOpenPanelParameters, WKFrameInfo, Action<NSUrl[]>)
ShouldPreviewElement(IWKUIDelegate, WKWebView, WKPreviewElementInfo)

Method that is called to find out if the element should provide a preview.

Applies to