Dela via


HttpAuthHandler.UseHttpAuthUsernamePassword Method

Definition

Gets whether the credentials stored for the current host (i.

[Android.Runtime.Register("useHttpAuthUsernamePassword", "()Z", "GetUseHttpAuthUsernamePasswordHandler")]
public virtual bool UseHttpAuthUsernamePassword ();
[<Android.Runtime.Register("useHttpAuthUsernamePassword", "()Z", "GetUseHttpAuthUsernamePasswordHandler")>]
abstract member UseHttpAuthUsernamePassword : unit -> bool
override this.UseHttpAuthUsernamePassword : unit -> bool

Returns

whether the credentials are suitable for use

Attributes

Remarks

Gets whether the credentials stored for the current host (i.e. the host for which WebViewClient#onReceivedHttpAuthRequest was called) are suitable for use. Credentials are not suitable if they have previously been rejected by the server for the current request.

<p class="note"><b>Note:</b> The host application must call this method on the host application's UI Thread.

Java documentation for android.webkit.HttpAuthHandler.useHttpAuthUsernamePassword().

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

  • <xref:Android.Webkit.WebView.GetHttpAuthUsernamePassword(System.String%2c+System.String)>