Created
February 20, 2012 14:57
-
-
Save dongyuwei/1869568 to your computer and use it in GitHub Desktop.
phonegap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. | |
* | |
* Since we are hacking prompts for our own purposes, we should not be using them for | |
* this purpose, perhaps we should hack console.log to do this instead! | |
* | |
* @param view | |
* @param url | |
* @param message | |
* @param defaultValue | |
* @param result | |
*/ | |
@Override | |
public boolean onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result) { | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment