ICoreWebView2Settings2

Trait ICoreWebView2Settings2 

Source
pub trait ICoreWebView2Settings2: ICoreWebView2Settings {
    // Required methods
    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§

Source

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

Source

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§

Source§

impl ComInterface for dyn ICoreWebView2Settings2

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_SETTINGS2

The associated id for this interface
Source§

type VTable = ICoreWebView2Settings2VTable

A COM compatible V-Table
Source§

type Super = dyn ICoreWebView2Settings

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

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

impl<C: ICoreWebView2Settings2> ProductionComInterface<C> for dyn ICoreWebView2Settings2

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2Settings2 + ComInterface + ?Sized> ICoreWebView2Settings2 for ComPtr<T>

Source§

unsafe fn get_user_agent(&self, user_agent: *mut LPWSTR) -> HRESULT

Source§

unsafe fn put_user_agent(&self, user_agent: LPCWSTR) -> HRESULT

Source§

impl<T: ICoreWebView2Settings2 + ComInterface + ?Sized> ICoreWebView2Settings2 for ComRc<T>

Source§

unsafe fn get_user_agent(&self, user_agent: *mut LPWSTR) -> HRESULT

Source§

unsafe fn put_user_agent(&self, user_agent: LPCWSTR) -> HRESULT

Implementors§