本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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;
}
示例9: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
@Override
public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
return false;
}
示例10: onConsoleMessage
import com.tencent.smtt.export.external.interfaces.ConsoleMessage; //导入依赖的package包/类
boolean onConsoleMessage(ConsoleMessage consoleMessage);