get_favicon


Description:

public async Texture get_favicon (string page_uri, Cancellable? cancellable = null) throws Error

Asynchronously obtains a favicon image.

Asynchronously obtains an image 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 get_favicon.end to get the result of the operation.

Parameters:

this

a FaviconDatabase

page_uri

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

cancellable

A Cancellable or null.

callback

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

user_data

The data to pass to callback.