Code example for ConsoleMessage

Methods: lineNumbermessagesourceId

0
				} 
			} 
 
			@Override // since API Level 8 
        	public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
        	    onConsoleMessage(consoleMessage.message(), consoleMessage.lineNumber(), consoleMessage.sourceId());
				return true; 
			} 
 
			@Override	// enable console.log javascript environment, will be sent to adb logcat 
        	public void onConsoleMessage(String message, int lineNumber, String sourceID) {
        	    Log.v("wmp.console", message + " [Line "
        	                         + lineNumber + "], Source: "
        	                         + sourceID );
			} 
 
			@Override 
			public void onGeolocationPermissionsShowPrompt(String origin, GeolocationPermissions.Callback callback) {
				callback.invoke(origin, true, false);
			 } 
Contextual code suggestions in your IDE  Get Codota for Java