Hi Linus,


If the method "getSettings()" of the class "XWalkView" will be available again 
in an upcoming release?



There are some discussion about the method "getSettings()" in 
https://crosswalk-project.org/jira/browse/XWALK-3313, I think the answer is no.



About XWalkSetting, a few things moved to Class XWalkPreferences 
(https://crosswalk-project.org/apis/embeddingapidocs_v3/index.html) and some 
others are implemented in XWalkView e.g. The User Agent customization will be 
available in Class XWalkView. on Crosswalk 12 by

public void setUserAgentString(String userAgent);



Please refer to 
https://crosswalk-project.org/documentation/about/faq.html#Embedding-API , as 
the FAQ said, If you have a specific need, you should create a feature request 
in the Crosswalk Project JIRA and specify your use-case and requirements for 
the API. Our project manager and development team will evaluate the feature 
requests and implement them.



BR

Belem



From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Linus 
Hülsmann

Sent: Friday, January 16, 2015 6:53 PM

To: [email protected]

Subject: [Crosswalk-help] Re-2: Getting console logs of XWalkView



Hi Xu Xing,



thanks for your advise!

Do you further know, if the method "getSettings()" of the class "XWalkView" 
will be available again in an upcoming release?



Best regards

Linus





 Original Message processed by david®



RE: [Crosswalk-help] Getting console logs of XWalkView (16-Jan-2015 6:04)

From:   Xu, Xing

To (2):

Linus Hülsmann, [email protected]



Hi, Linus,

We didn't support "XWalkWebChromeClient::onConsoleMessage" yet.

So in your case, the "onConsoleMessage" will not be called.



We have planned to implement it with "XWalkUIClient::onConsoleMessage".

The related implementation is under review and validation. you will see it soon 
in next release.







From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Linus 
Hülsmann

Sent: Tuesday, December 16, 2014 00:46

To: [email protected]

Subject: [Crosswalk-help] Getting console logs of XWalkView



Hello,



I'm trying to intercept console logs of a XWalkView with the following code:

webView.setXWalkWebChromeClient(new XWalkWebChromeClient(webView){

  @Override

    public boolean onConsoleMessage(ConsoleMessage consoleMessage) {

        ConsoleMessage.MessageLevel messageLevel = 
consoleMessage.messageLevel();

        String message = "[" + messageLevel.name() + ":CONSOLE(" + 
consoleMessage.lineNumber() + ")] \"" + consoleMessage.message() + "\", source: 
" + consoleMessage.sourceId() + " (" + consoleMessage.lineNumber() +")";

        switch(messageLevel){

            case DEBUG:

                L.d(TAG, message);

                break;

            case ERROR:

                L.e(TAG, message);

                break;

            case WARNING:

                L.i(TAG, message);

                break;

            case LOG:

                L.i(TAG, message);

                break;

            case TIP:

                L.i(TAG, message);

                break;

            default:

                L.i(TAG, message);

        }

        return true;

    }



}

But unfortunately the method "onConsoleMessage" is never called after writing 
console logs. Am I doing something wrong here?

I've tested the code on an Android stick with Android 4.4.2

Best regards,

Linus





To: [email protected]

    [email protected]
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to