本文整理汇总了Java中com.tencent.smtt.export.external.interfaces.ConsoleMessage类的典型用法代码示例。如果您正苦于以下问题:Java ConsoleMessage类的具体用法?Java ConsoleMessage怎么用?Java ConsoleMessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ConsoleMessage类属于com.tencent.smtt.export.external.interfaces包,在下文中一共展示了ConsoleMessage类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
@Override
public boolean onConsoleMessage(ConsoleMessage cm) {
if (null != cm) {
Log.i(TAG, cm.message() + " -- From line "
+ cm.lineNumber() + " of "
+ cm.sourceId());
}
return super.onConsoleMessage(cm);
}
开发者ID:snailycy,项目名称:AndroidHybridLib,代码行数:10,代码来源:X5WebChromeClient.java
示例2: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
/*onConsoleMessage(consoleMessage.message(), consoleMessage.lineNumber(),
consoleMessage.sourceId());*/
if (this.mRealWebChromeClient != null)
return this.mRealWebChromeClient.onConsoleMessage(consoleMessage);
return super.onConsoleMessage(consoleMessage);
}
开发者ID:Justson,项目名称:AgentWebX5,代码行数:9,代码来源:WebChromeClientWrapper.java
示例3: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
@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);
}
开发者ID:runner525,项目名称:x5webview-cordova-plugin,代码行数:9,代码来源:X5WebChromeClient.java
示例4: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
@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);
}
开发者ID:jeremyup,项目名称:cordova-plugin-x5-webview,代码行数:8,代码来源:X5WebChromeClient.java
示例5: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
@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);
}
开发者ID:zsxsoft,项目名称:cordova-plugin-x5-tbs,代码行数:8,代码来源:X5WebChromeClient.java
示例6: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
@Override
public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
if (WDataManager.sRootWgt!=null&&WDataManager.sRootWgt.m_appdebug==1 && !TextUtils.isEmpty(WDataManager.sRootWgt.m_logServerIp)) {
if (consoleMessage.messageLevel() != ConsoleMessage.MessageLevel.WARNING) {//过滤掉warning
BDebug.sendUDPLog(formatConsole(consoleMessage));
}
}
return super.onConsoleMessage(consoleMessage);
}
开发者ID:AppCanOpenSource,项目名称:appcan-android,代码行数:10,代码来源:CBrowserMainFrame7.java
示例7: formatConsole
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
private static String formatConsole(ConsoleMessage consoleMessage){
StringBuilder stringBuilder=new StringBuilder();
stringBuilder.append("[ ")
.append(simpleSourceInfo(consoleMessage.sourceId()))
.append(" line : ")
.append(consoleMessage.lineNumber())
.append(" ")
.append(consoleMessage.messageLevel().toString().toLowerCase())
.append(" ]\n")
.append(consoleMessage.message())
.append("\n");
return stringBuilder.toString();
}
开发者ID:AppCanOpenSource,项目名称:appcan-android,代码行数:14,代码来源:CBrowserMainFrame7.java
示例8: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
@Override
public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
super.onConsoleMessage(consoleMessage);
LogUtils.i(TAG, "consoleMessage:" + consoleMessage.message() + " lineNumber:" + consoleMessage.lineNumber());
return true;
}
开发者ID:Justson,项目名称:AgentWebX5,代码行数:7,代码来源:DefaultChromeClient.java
示例9: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
@Override
public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
return false;
}
开发者ID:hjhrq1991,项目名称:JsBridge,代码行数:5,代码来源:WebChromeClientListener.java
示例10: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
boolean onConsoleMessage(ConsoleMessage consoleMessage);
开发者ID:hjhrq1991,项目名称:JsBridge,代码行数:2,代码来源:OnWebChromeClientListener.java
注:本文中的com.tencent.smtt.export.external.interfaces.ConsoleMessage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论