WebKit2.WebView.prototype.get_snapshot_finish

function get_snapshot_finish(result: Gio.AsyncResult): cairo.Surface {
    // Gjs wrapper for webkit_web_view_get_snapshot_finish()
}
  

Finishes an asynchronous operation started with WebKit2.WebView.prototype.get_snapshot.

result

a Gio.AsyncResult

Returns

a #cairo_surface_t with the retrieved snapshot or null in error.