WKWebView.TakeSnapshot Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
TakeSnapshot(WKSnapshotConfiguration, Action<NSImage,NSError>) | |
TakeSnapshot(WKSnapshotConfiguration, Action<UIImage,NSError>) |
Prend un instantané de la fenêtre d’affichage actuelle et exécute un gestionnaire qui prend l’image obtenue et toute erreur rencontrée. |
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
Paramètres
- snapshotConfiguration
- WKSnapshotConfiguration
- Attributs
S’applique à
TakeSnapshot(WKSnapshotConfiguration, Action<UIImage,NSError>)
Prend un instantané de la fenêtre d’affichage actuelle et exécute un gestionnaire qui prend l’image obtenue et toute erreur rencontrée.
[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
Paramètres
- snapshotConfiguration
- WKSnapshotConfiguration
Configuration d’instantané à utiliser.
Ce paramètre peut être null
.
Gestionnaire de saisie semi-automatique qui reçoit l’image (ou null
si une erreur s’est produite) et l’erreur (ou null
si aucune erreur ne s’est produite).
- Attributs