Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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