[−][src]Trait webview2_sys::ICoreWebView2EnvironmentOptions
Options used to create WebView2 Environment. A default implementation is provided in WebView2EnvironmentOptions.h.
\snippet AppWindow.cpp CreateCoreWebView2EnvironmentWithOptions
Required methods
unsafe fn get_additional_browser_arguments(&self, value: *mut LPWSTR) -> HRESULT
AdditionalBrowserArguments can be specified to change the behavior of the
WebView. These will be passed to the browser process as part of
the command line. See
Run Chromium with Flags
for more information about command line switches to browser
process. If the app is launched with a command line switch
--edge-webview-switches=xxx
the value of that switch (xxx in
the above example) will also be appended to the browser
process command line. Certain switches like --user-data-dir
are
internal and important to WebView. Those switches will be
ignored even if specified. If the same switches are specified
multiple times, the last one wins. There is no attempt to
merge the different values of the same switch, except for disabled
and enabled features. The features specified by --enable-features
and --disable-features
will be merged with simple logic: the features
will be the union of the specified features and built-in features, and if
a feature is disabled, it will be removed from the enabled features list.
App process's command line --edge-webview-switches
value are processed
after the additionalBrowserArguments parameter is processed. Certain
features are disabled internally and can't be enabled.
If parsing failed for the specified switches, they will be
ignored. Default is to run browser process with no extra flags.
unsafe fn put_additional_browser_arguments(&self, value: LPCWSTR) -> HRESULT
Set the AdditionalBrowserArguments property.
unsafe fn get_language(&self, value: *mut LPWSTR) -> HRESULT
The default language that WebView will run with. It applies to browser UIs
like context menu and dialogs. It also applies to the accept-languages
HTTP header that WebView sends to web sites.
It is in the format of language[-country]
where language
is the 2 letter
code from ISO 639 and country
is the 2 letter code from ISO 3166.
unsafe fn put_language(&self, value: LPCWSTR) -> HRESULT
Set the Language property.
unsafe fn get_target_compatible_browser_version(
&self,
value: *mut LPWSTR
) -> HRESULT
&self,
value: *mut LPWSTR
) -> HRESULT
The version of the Edge WebView2 Runtime binaries required to be compatible with the calling application. This defaults to the Edge WebView2 Runtime version that corresponds with the version of the SDK the application is using. The format of this value is the same as the format of the BrowserVersionString property and other BrowserVersion values. Only the version part of the BrowserVersion value is respected. The channel suffix, if it exists, is ignored. The version of the Edge WebView2 Runtime binaries actually used may be different from the specified TargetCompatibleBrowserVersion. They are only guaranteed to be compatible. You can check the actual version on the BrowserVersionString property on the ICoreWebView2Environment.
unsafe fn put_target_compatible_browser_version(
&self,
value: LPCWSTR
) -> HRESULT
&self,
value: LPCWSTR
) -> HRESULT
Set the TargetCompatibleBrowserVersion property.
unsafe fn get_allow_single_sign_on_using_osprimary_account(
&self,
allow: *mut BOOL
) -> HRESULT
&self,
allow: *mut BOOL
) -> HRESULT
The AllowSingleSignOnUsingOSPrimaryAccount property is used to enable single sign on with Azure Active Directory (AAD) resources inside WebView using the logged in Windows account and single sign on with web sites using Microsoft account associated with the login in Windows account. Default is disabled. Universal Windows Platform apps must also declare enterpriseCloudSSO restricted capability for the single sign on to work.
unsafe fn put_allow_single_sign_on_using_osprimary_account(
&self,
allow: BOOL
) -> HRESULT
&self,
allow: BOOL
) -> HRESULT
Set the AllowSingleSignOnUsingOSPrimaryAccount property.
Trait Implementations
impl ComInterface for dyn ICoreWebView2EnvironmentOptions
[src]
type VTable = ICoreWebView2EnvironmentOptionsVTable
A COM compatible V-Table
type Super = dyn IUnknown
The interface that this interface inherits from
const IID: IID
[src]
fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
[src]
impl<C: ICoreWebView2EnvironmentOptions> ProductionComInterface<C> for dyn ICoreWebView2EnvironmentOptions
[src]
Implementations on Foreign Types
impl<T: ICoreWebView2EnvironmentOptions + ComInterface + ?Sized> ICoreWebView2EnvironmentOptions for ComRc<T>
[src]
unsafe fn get_additional_browser_arguments(&self, value: *mut LPWSTR) -> HRESULT
[src]
unsafe fn put_additional_browser_arguments(&self, value: LPCWSTR) -> HRESULT
[src]
unsafe fn get_language(&self, value: *mut LPWSTR) -> HRESULT
[src]
unsafe fn put_language(&self, value: LPCWSTR) -> HRESULT
[src]
unsafe fn get_target_compatible_browser_version(
&self,
value: *mut LPWSTR
) -> HRESULT
[src]
&self,
value: *mut LPWSTR
) -> HRESULT
unsafe fn put_target_compatible_browser_version(
&self,
value: LPCWSTR
) -> HRESULT
[src]
&self,
value: LPCWSTR
) -> HRESULT
unsafe fn get_allow_single_sign_on_using_osprimary_account(
&self,
allow: *mut BOOL
) -> HRESULT
[src]
&self,
allow: *mut BOOL
) -> HRESULT
unsafe fn put_allow_single_sign_on_using_osprimary_account(
&self,
allow: BOOL
) -> HRESULT
[src]
&self,
allow: BOOL
) -> HRESULT
impl<T: ICoreWebView2EnvironmentOptions + ComInterface + ?Sized> ICoreWebView2EnvironmentOptions for ComPtr<T>
[src]
unsafe fn get_additional_browser_arguments(&self, value: *mut LPWSTR) -> HRESULT
[src]
unsafe fn put_additional_browser_arguments(&self, value: LPCWSTR) -> HRESULT
[src]
unsafe fn get_language(&self, value: *mut LPWSTR) -> HRESULT
[src]
unsafe fn put_language(&self, value: LPCWSTR) -> HRESULT
[src]
unsafe fn get_target_compatible_browser_version(
&self,
value: *mut LPWSTR
) -> HRESULT
[src]
&self,
value: *mut LPWSTR
) -> HRESULT
unsafe fn put_target_compatible_browser_version(
&self,
value: LPCWSTR
) -> HRESULT
[src]
&self,
value: LPCWSTR
) -> HRESULT
unsafe fn get_allow_single_sign_on_using_osprimary_account(
&self,
allow: *mut BOOL
) -> HRESULT
[src]
&self,
allow: *mut BOOL
) -> HRESULT
unsafe fn put_allow_single_sign_on_using_osprimary_account(
&self,
allow: BOOL
) -> HRESULT
[src]
&self,
allow: BOOL
) -> HRESULT