WebKit2.FaviconDatabase.prototype.get_favicon

function get_favicon(page_uri: String, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for webkit_favicon_database_get_favicon()
}
  

Asynchronously obtains a #cairo_surface_t of the favicon for the given page URI. It returns the cached icon if it's in the database asynchronously waiting for the icon to be read from the database.

This is an asynchronous method. When the operation is finished, callback will be invoked. You can then call WebKit2.FaviconDatabase.prototype.get_favicon_finish to get the result of the operation.

page_uri

URI of the page for which we want to retrieve the favicon

cancellable

A Gio.Cancellable or null.

callback

A Gio.AsyncReadyCallback to call when the request is satisfied or null if you don't care about the result.