Android.Webkit.WebChromeClient.OnJsPrompt Method
Tell the client to display a prompt dialog to the user.

Syntax

[Android.Runtime.Register("onJsPrompt", "(Landroid/webkit/WebView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/webkit/JsPromptResult;)Z", "GetOnJsPrompt_Landroid_webkit_WebView_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Landroid_webkit_JsPromptResult_Handler")]
public virtual bool OnJsPrompt (WebView view, string url, string message, string defaultValue, JsPromptResult result)

Parameters

view
The WebView that initiated the callback.
url
The url of the page requesting the dialog.
message
Message to be displayed in the window.
defaultValue
The default value displayed in the prompt dialog.
result
A JsPromptResult used to send the user's reponse to javascript.

Returns

Documentation for this section has not yet been entered.

Remarks

Tell the client to display a prompt dialog to the user. If the client returns true, WebView will assume that the client will handle the prompt dialog and call the appropriate JsPromptResult method. If the client returns false, a default value of false will be returned to to javascript. The default behavior is to return false.

[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