WKWebView.TakeSnapshot 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TakeSnapshot(WKSnapshotConfiguration, Action<NSImage,NSError>) | |
TakeSnapshot(WKSnapshotConfiguration, Action<UIImage,NSError>) |
拍摄当前视口的快照,并运行一个处理程序,该处理程序获取生成的图像和遇到的任何错误。 |
TakeSnapshot(WKSnapshotConfiguration, Action<NSImage,NSError>)
[Foundation.Export("takeSnapshotWithConfiguration:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void TakeSnapshot (WebKit.WKSnapshotConfiguration snapshotConfiguration, Action<AppKit.NSImage,Foundation.NSError> completionHandler);
abstract member TakeSnapshot : WebKit.WKSnapshotConfiguration * Action<AppKit.NSImage, Foundation.NSError> -> unit
override this.TakeSnapshot : WebKit.WKSnapshotConfiguration * Action<AppKit.NSImage, Foundation.NSError> -> unit
参数
- snapshotConfiguration
- WKSnapshotConfiguration
- 属性
适用于
TakeSnapshot(WKSnapshotConfiguration, Action<UIImage,NSError>)
拍摄当前视口的快照,并运行一个处理程序,该处理程序获取生成的图像和遇到的任何错误。
[Foundation.Export("takeSnapshotWithConfiguration:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void TakeSnapshot (WebKit.WKSnapshotConfiguration snapshotConfiguration, Action<UIKit.UIImage,Foundation.NSError> completionHandler);
abstract member TakeSnapshot : WebKit.WKSnapshotConfiguration * Action<UIKit.UIImage, Foundation.NSError> -> unit
override this.TakeSnapshot : WebKit.WKSnapshotConfiguration * Action<UIKit.UIImage, Foundation.NSError> -> unit
参数
- 属性