WebKit2.WebView.prototype.get_snapshot
function get_snapshot(region: WebKit2.SnapshotRegion, options: WebKit2.SnapshotOptions, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for webkit_web_view_get_snapshot() }
Asynchronously retrieves a snapshot of web_view for region. options specifies how the snapshot should be rendered.
When the operation is finished, callback will be called. You must call WebKit2.WebView.prototype.get_snapshot_finish to get the result of the operation.
- region
the WebKit2.SnapshotRegion for this snapshot
- options
WebKit2.SnapshotOptions for the snapshot
- cancellable
- callback