Code example for JsPromptResult

Methods: confirm

0
            return true; 
        } 
 
        @Override 
        public boolean onJsPrompt(WebView view, String url, String message, String defaultValue,
                JsPromptResult result) {
            result.confirm();
            return true; 
        } 
 
        @Override 
        public boolean onJsTimeout() { 
            timeoutCounter++;
            Log.v(LOGTAG, "JavaScript timeout, count=" + timeoutCounter);
            return timeoutCounter > 2;
        } 
 
        public void resetJsTimeout() { 
            timeoutCounter = 0;
        }