Trait webview2_sys::ICoreWebView2Settings2[][src]

pub trait ICoreWebView2Settings2: ICoreWebView2Settings {
    unsafe fn get_user_agent(&self, user_agent: *mut LPWSTR) -> HRESULT;
unsafe fn put_user_agent(&self, user_agent: LPCWSTR) -> HRESULT; }
Expand description

A continuation of the ICoreWebView2Settings interface that manages the user agent.

Required methods

Returns the User Agent. The default value is the default User Agent of the Microsoft Edge browser.

\snippet SettingsComponent.cpp UserAgent

Sets the UserAgent property. This property may be overridden if the User-Agent header is set in a request. If the parameter is empty the User Agent will not be updated and the current User Agent will remain.

Trait Implementations

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

Check whether a given IID is in the inheritance hierarchy of this interface

Get the vtable for a particular COM interface

Implementations on Foreign Types

Implementors