pub trait ICoreWebView2Settings4: ICoreWebView2Settings3 {
// Required methods
unsafe fn get_is_password_autosave_enabled(
&self,
value: *mut BOOL,
) -> HRESULT;
unsafe fn put_is_password_autosave_enabled(&self, value: BOOL) -> HRESULT;
unsafe fn get_is_general_autofill_enabled(
&self,
value: *mut BOOL,
) -> HRESULT;
unsafe fn put_is_general_autofill_enabled(&self, value: BOOL) -> HRESULT;
}Expand description
A continuation of the ICoreWebView2Settings interface to manage autofill.
Required Methods§
Sourceunsafe fn get_is_password_autosave_enabled(&self, value: *mut BOOL) -> HRESULT
unsafe fn get_is_password_autosave_enabled(&self, value: *mut BOOL) -> HRESULT
IsPasswordAutosaveEnabled controls whether autosave for password
information is enabled. The IsPasswordAutosaveEnabled property behaves
independently of the IsGeneralAutofillEnabled property. When IsPasswordAutosaveEnabled is
false, no new password data is saved and no Save/Update Password prompts are displayed.
However, if there was password data already saved before disabling this setting,
then that password information is auto-populated, suggestions are shown and clicking on
one will populate the fields.
When IsPasswordAutosaveEnabled is true, password information is auto-populated,
suggestions are shown and clicking on one will populate the fields, new data
is saved, and a Save/Update Password prompt is displayed.
The default value is FALSE.
\snippet SettingsComponent.cpp PasswordAutosaveEnabled
Sourceunsafe fn put_is_password_autosave_enabled(&self, value: BOOL) -> HRESULT
unsafe fn put_is_password_autosave_enabled(&self, value: BOOL) -> HRESULT
Set the IsPasswordAutosaveEnabled property.
Sourceunsafe fn get_is_general_autofill_enabled(&self, value: *mut BOOL) -> HRESULT
unsafe fn get_is_general_autofill_enabled(&self, value: *mut BOOL) -> HRESULT
IsGeneralAutofillEnabled controls whether autofill for information
like names, street and email addresses, phone numbers, and arbitrary input
is enabled. This excludes password and credit card information. When
IsGeneralAutofillEnabled is false, no suggestions appear, and no new information
is saved. When IsGeneralAutofillEnabled is true, information is saved, suggestions
appear and clicking on one will populate the form fields.
The default value is TRUE.
\snippet SettingsComponent.cpp GeneralAutofillEnabled
Sourceunsafe fn put_is_general_autofill_enabled(&self, value: BOOL) -> HRESULT
unsafe fn put_is_general_autofill_enabled(&self, value: BOOL) -> HRESULT
Set the IsGeneralAutofillEnabled property.