Java Code Examples for com.tencent.smtt.export.external.interfaces.ConsoleMessage#message()
The following examples show how to use
com.tencent.smtt.export.external.interfaces.ConsoleMessage#message() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: X5WebChromeClient.java From x5webview-cordova-plugin with Apache License 2.0 | 5 votes |
@TargetApi(8) @Override public boolean onConsoleMessage(ConsoleMessage consoleMessage) { if (consoleMessage.message() != null) LOG.d(LOG_TAG, "%s: Line %d : %s" , consoleMessage.sourceId() , consoleMessage.lineNumber(), consoleMessage.message()); return super.onConsoleMessage(consoleMessage); }
Example 2
Source File: X5WebChromeClient.java From cordova-plugin-x5-webview with Apache License 2.0 | 5 votes |
@TargetApi(8) public boolean onConsoleMessage(ConsoleMessage consoleMessage) { if (consoleMessage.message() != null) LOG.d(LOG_TAG, "%s: Line %d : %s" , consoleMessage.sourceId() , consoleMessage.lineNumber(), consoleMessage.message()); return super.onConsoleMessage(consoleMessage); }
Example 3
Source File: X5WebChromeClient.java From cordova-plugin-x5-tbs with Apache License 2.0 | 5 votes |
@TargetApi(8) @Override public boolean onConsoleMessage(ConsoleMessage consoleMessage) { if (consoleMessage.message() != null) LOG.d(LOG_TAG, "%s: Line %d : %s", consoleMessage.sourceId(), consoleMessage.lineNumber(), consoleMessage.message()); return super.onConsoleMessage(consoleMessage); }
Example 4
Source File: X5WebChromeClient.java From YCWebView with Apache License 2.0 | 5 votes |
/** * 接收JavaScript控制台消息 * @param consoleMessage message * @return */ @Override public boolean onConsoleMessage(ConsoleMessage consoleMessage) { String message = consoleMessage.message(); ConsoleMessage.MessageLevel messageLevel = consoleMessage.messageLevel(); String sourceId = consoleMessage.sourceId(); //X5LogUtils.i("-------onConsoleMessage-------"+message+"----"+sourceId); return super.onConsoleMessage(consoleMessage); }
Example 5
Source File: X5WebChromeClient.java From cordova-plugin-x5engine-webview with Apache License 2.0 | 5 votes |
@TargetApi(8) @Override public boolean onConsoleMessage(ConsoleMessage consoleMessage) { if (consoleMessage.message() != null) LOG.d(LOG_TAG, "%s: Line %d : %s" , consoleMessage.sourceId() , consoleMessage.lineNumber(), consoleMessage.message()); return super.onConsoleMessage(consoleMessage); }