| org.xwalk.core.XWalkJavascriptResult |
This interface is used when XWalkUIClient offers a JavaScript modal dialog (alert, beforeunload or confirm) to enable the client to handle the dialog in their own way. XWalkUIClient will offer an object that implements this interface to the client and when the client has handled the dialog, it must either callback with confirm() or cancel() to allow processing to continue.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
cancel()
Handle the result if the caller cancelled the dialog.
| ||||||||||
| abstract void |
confirm()
Handle a confirm without a result.
| ||||||||||
| abstract void |
confirmWithResult(String result)
Handle a confirm with a result from caller.
| ||||||||||
Handle the result if the caller cancelled the dialog.
Handle a confirm without a result.
Handle a confirm with a result from caller.
| result | the result string from caller. |
|---|