WKWebView.TakeSnapshotAsync(WKSnapshotConfiguration) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously takes a snapshot of the current viewport.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<UIKit.UIImage> TakeSnapshotAsync (WebKit.WKSnapshotConfiguration snapshotConfiguration);
public virtual System.Threading.Tasks.Task<UIKit.UIImage> TakeSnapshotAsync (WebKit.WKSnapshotConfiguration snapshotConfiguration);
abstract member TakeSnapshotAsync : WebKit.WKSnapshotConfiguration -> System.Threading.Tasks.Task<UIKit.UIImage>
override this.TakeSnapshotAsync : WebKit.WKSnapshotConfiguration -> System.Threading.Tasks.Task<UIKit.UIImage>
Parameters
- snapshotConfiguration
- WKSnapshotConfiguration
The snapshot configuration to use.This parameter can be .
Returns
The result is of type System.Tasks.Task<AppKit.NSImage> on MacOS and System.Tasks.Task<UIKit.UIImage> on iOS.
- Attributes
Remarks
The TakeSnapshotAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
To be added.