Android APIs
public class

ConsoleMessage

extends Object
java.lang.Object
   ↳ android.webkit.ConsoleMessage

Class Overview

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 onConsoleMessage(ConsoleMessage) function.

Summary

Nested Classes
enum ConsoleMessage.MessageLevel  
Public Constructors
ConsoleMessage(String message, String sourceId, int lineNumber, ConsoleMessage.MessageLevel msgLevel)
Public Methods
int lineNumber()
String message()
ConsoleMessage.MessageLevel messageLevel()
String sourceId()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ConsoleMessage (String message, String sourceId, int lineNumber, ConsoleMessage.MessageLevel msgLevel)

Added in API level 8

Public Methods

public int lineNumber ()

Added in API level 8

public String message ()

Added in API level 8

public ConsoleMessage.MessageLevel messageLevel ()

Added in API level 8

public String sourceId ()

Added in API level 8