次の方法で共有


WKWebView.TakeSnapshot メソッド

定義

オーバーロード

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
completionHandler
Action<NSImage,NSError>
属性

適用対象

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

パラメーター

snapshotConfiguration
WKSnapshotConfiguration

使用するスナップショット構成。

このパラメーターは、null に設定できます。

completionHandler
Action<UIImage,NSError>

イメージ (またはエラーが発生した場合) とエラー (またはnullnullエラーが発生しなかった場合) を受け取る完了ハンドラー。

属性

適用対象