FileDocCategorySizeDatePackage
ConsoleMessage.javaAPI DocAndroid 5.1 API1858Thu Mar 12 22:22:10 GMT 2015android.webkit

ConsoleMessage

public class ConsoleMessage extends Object
Public class representing a JavaScript console message from WebCore. This could be a issued by a call to one of the console logging functions (e.g. console.log('...')) or a JavaScript error on the page. To receive notifications of these messages, override the {@link WebChromeClient#onConsoleMessage(ConsoleMessage)} function.

Fields Summary
private MessageLevel
mLevel
private String
mMessage
private String
mSourceId
private int
mLineNumber
Constructors Summary
public ConsoleMessage(String message, String sourceId, int lineNumber, MessageLevel msgLevel)

        mMessage = message;
        mSourceId = sourceId;
        mLineNumber = lineNumber;
        mLevel = msgLevel;
    
Methods Summary
public intlineNumber()

        return mLineNumber;
    
public java.lang.Stringmessage()

        return mMessage;
    
public android.webkit.ConsoleMessage$MessageLevelmessageLevel()

        return mLevel;
    
public java.lang.StringsourceId()

        return mSourceId;