ICoreWebView2_15

Undocumented in source.

Members

Functions

GetFavicon
HRESULT GetFavicon(COREWEBVIEW2_FAVICON_IMAGE_FORMAT format, ICoreWebView2GetFaviconCompletedHandler completedHandler)

Async function for getting the actual image data of the favicon. The image is copied to the imageStream object in ICoreWebView2GetFaviconCompletedHandler. If there is no image then no data would be copied into the imageStream. The format is the file format to return the image stream. completedHandler is executed at the end of the operation.

add_FaviconChanged
HRESULT add_FaviconChanged(ICoreWebView2FaviconChangedEventHandler eventHandler, EventRegistrationToken* token)

Add an event handler for the FaviconChanged event. The FaviconChanged event is raised when the favicon

had a different URL then the previous URL. The FaviconChanged event will be raised for first navigating to a new document, whether or not a document declares a Favicon in HTML if the favicon is different from the previous fav icon. The event will be raised again if a favicon is declared in its HTML or has script to set its favicon. The favicon information can then be retrieved with GetFavicon and FaviconUri.

get_FaviconUri
HRESULT get_FaviconUri(LPWSTR* value)

Get the current Uri of the favicon as a string. If the value is null, then the return value is E_POINTER, otherwise it is S_OK. If a page has no favicon then the value is an empty string.

remove_FaviconChanged
HRESULT remove_FaviconChanged(EventRegistrationToken token)

Remove the event handler for FaviconChanged event.

Inherited Members

From ICoreWebView2_14

add_ServerCertificateErrorDetected
HRESULT add_ServerCertificateErrorDetected(ICoreWebView2ServerCertificateErrorDetectedEventHandler eventHandler, EventRegistrationToken* token)

Add an event handler for the ServerCertificateErrorDetected event. The ServerCertificateErrorDetected event is raised when the WebView2 cannot verify server's digital certificate while loading a web page.

remove_ServerCertificateErrorDetected
HRESULT remove_ServerCertificateErrorDetected(EventRegistrationToken token)

Remove an event handler previously added with add_ServerCertificateErrorDetected.

ClearServerCertificateErrorActions
HRESULT ClearServerCertificateErrorActions(ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler handler)

Clears all cached decisions to proceed with TLS certificate errors from the ServerCertificateErrorDetected event for all WebView2's sharing the same session.

Meta