共用方式為


WKUIDelegate.GetPreviewingViewController 方法

定義

當使用者查看內容時所呼叫的方法。

[Foundation.Export("webView:previewingViewControllerForElement:defaultActions:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIViewController GetPreviewingViewController (WebKit.WKWebView webView, WebKit.WKPreviewElementInfo elementInfo, WebKit.IWKPreviewActionItem[] previewActions);
abstract member GetPreviewingViewController : WebKit.WKWebView * WebKit.WKPreviewElementInfo * WebKit.IWKPreviewActionItem[] -> UIKit.UIViewController
override this.GetPreviewingViewController : WebKit.WKWebView * WebKit.WKPreviewElementInfo * WebKit.IWKPreviewActionItem[] -> UIKit.UIViewController

參數

webView
WKWebView
elementInfo
WKPreviewElementInfo
previewActions
IWKPreviewActionItem[]

傳回

屬性

適用於