FileDocCategorySizeDatePackage
JsPromptResult.javaAPI DocAndroid 1.5 API1578Wed May 06 22:41:56 BST 2009android.webkit

JsPromptResult

public class JsPromptResult extends JsResult
Public class for handling javascript prompt requests. A JsDialogHandlerInterface implentation will receive a jsPrompt call with a JsPromptResult parameter. This parameter is used to return a result to WebView. 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
JsPromptResult(CallbackProxy proxy)

        super(proxy, /* unused */ false);
    
Methods Summary
public voidconfirm(java.lang.String result)
Handle a confirmation response from the user.

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

        return mStringResult;
    
voidhandleDefault()

        mStringResult = null;
        super.handleDefault();