The OpenD Programming Language

ICoreWebView2Profile

Undocumented in source.

Members

Functions

get_DefaultDownloadFolderPath
HRESULT get_DefaultDownloadFolderPath(LPWSTR* value)

Gets the DefaultDownloadFolderPath property. The default value is the system default download folder path for the user.

get_IsInPrivateModeEnabled
HRESULT get_IsInPrivateModeEnabled(BOOL* value)

InPrivate mode is enabled or not.

get_PreferredColorScheme
HRESULT get_PreferredColorScheme(COREWEBVIEW2_PREFERRED_COLOR_SCHEME* value)

The PreferredColorScheme property sets the overall color scheme of the WebView2s associated with this profile. This sets the color scheme for WebView2 UI like dialogs, prompts, and context menus by setting the media feature prefers-color-scheme for websites to respond to.

get_ProfileName
HRESULT get_ProfileName(LPWSTR* value)

Name of the profile.

get_ProfilePath
HRESULT get_ProfilePath(LPWSTR* value)

Full path of the profile directory.

put_DefaultDownloadFolderPath
HRESULT put_DefaultDownloadFolderPath(LPCWSTR value)

Sets the DefaultDownloadFolderPath property. The default download folder path is persisted in the user data folder across sessions. The value should be an absolute path to a folder that the user and application can write to. Returns E_INVALIDARG if the value is invalid, and the default download folder path is not changed. Otherwise the path is changed immediately. If the directory does not yet exist, it is created at the time of the next download. If the host application does not have permission to create the directory, then the user is prompted to provide a new path through the Save As dialog. The user can override the default download folder path for a given download by choosing a different path in the Save As dialog.

put_PreferredColorScheme
HRESULT put_PreferredColorScheme(COREWEBVIEW2_PREFERRED_COLOR_SCHEME value)

Sets the PreferredColorScheme property.

Meta