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
unsafe fn get_user_agent(&self, user_agent: *mut LPWSTR) -> HRESULT
unsafe fn get_user_agent(&self, user_agent: *mut LPWSTR) -> HRESULT
Returns the User Agent. The default value is the default User Agent of the Microsoft Edge browser.
\snippet SettingsComponent.cpp UserAgent
unsafe fn put_user_agent(&self, user_agent: LPCWSTR) -> HRESULT
unsafe fn put_user_agent(&self, user_agent: LPCWSTR) -> HRESULT
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
type Super = dyn ICoreWebView2Settings
type Super = dyn ICoreWebView2Settings
The interface that this interface inherits from
Check whether a given IID is in the inheritance hierarchy of this interface