Android Guides | Samples

Android.Webkit.JsPromptResult Class

Public class for handling JavaScript prompt requests.

See Also: JsPromptResult

Syntax

[Android.Runtime.Register("android/webkit/JsPromptResult", DoNotGenerateAcw=true)]
public class JsPromptResult : JsResult

Remarks

Public class for handling JavaScript prompt requests. The WebChromeClient will receive a WebChromeClient.OnJsPrompt(WebView,String,String,String,String) call with a JsPromptResult instance as a parameter. This parameter is used to return the result of this user dialog prompt back to the WebView instance. The client can call cancel() to cancel the dialog or confirm() with the user's input to confirm the dialog.

[Android Documentation]

Requirements

Namespace: Android.Webkit
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Webkit.JsPromptResult are listed below.

See Also: JsResult

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Confirm(String)
Handle a confirmation response from the user.