FileDocCategorySizeDatePackage
JsPromptResult.javaAPI DocAndroid 5.1 API1772Thu Mar 12 22:22:10 GMT 2015android.webkit

JsPromptResult

public class JsPromptResult extends JsResult
Public class for handling JavaScript prompt requests. The WebChromeClient will receive a {@link WebChromeClient#onJsPrompt(WebView, String, String, String, JsPromptResult)} 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.

Fields Summary
private String
mStringResult
Constructors Summary
public JsPromptResult(ResultReceiver receiver)

hide
Only for use by WebViewProvider implementations

        super(receiver);
    
Methods Summary
public voidconfirm(java.lang.String result)
Handle a confirmation response from the user.

        mStringResult = result;
        confirm();
    
public java.lang.StringgetStringResult()

hide
Only for use by WebViewProvider implementations

        return mStringResult;