Compartilhar via


WebView.SavePassword(String, String, String) Method

Definition

Caution

deprecated

Sets a username and password pair for the specified host.

[Android.Runtime.Register("savePassword", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetSavePassword_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual void SavePassword (string? host, string? username, string? password);
[<Android.Runtime.Register("savePassword", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetSavePassword_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SavePassword : string * string * string -> unit
override this.SavePassword : string * string * string -> unit

Parameters

host
String

the host that required the credentials

username
String

the username for the given host

password
String

the password for the given host

Attributes

Remarks

Sets a username and password pair for the specified host. This data is used by the WebView to autocomplete username and password fields in web forms. Note that this is unrelated to the credentials used for HTTP authentication.

This member is deprecated. Saving passwords in WebView will not be supported in future versions.

Java documentation for android.webkit.WebView.savePassword(java.lang.String, java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also