mXWalkView.setResourceClient(new ResourceClient(mXWalkView));
class ResourceClient extends XWalkResourceClient {
public ResourceClient(XWalkView xwalkView) {
super(xwalkView);
}
public void onLoadStarted(XWalkView view, String url) {
super.onLoadStarted(view, url);
Log.d(TAG, "Load Started:" + url);
}
public void onLoadFinished(XWalkView view, String url) {
super.onLoadFinished(view, url);
Log.d(TAG, "Load Finished:" + url);
}
}
Regards,
Xing
From: Aram Azhari [mailto:[email protected]]
Sent: Wednesday, September 16, 2015 2:16 AM
To: Xu, Xing
Cc: [email protected]
Subject: Re: [Crosswalk-help] Android XWalkView Embedded How to check if a page
is loaded completely
How to add this to XWalkView instance? I can't seem to find a member in
XWalkView that accepts that.
Also, I would like to add onReceivedLoadError, I suppose the procedure should
be similar to that of onLoadFinished.
Note that I'm simply initializing the XWalkView:
XWalkView webView = new XWalkView(getActivity(), getActivity());
what do I do to add those listener to webView ?
Thanks.
On Sat, Sep 5, 2015 at 10:35 PM, Xu, Xing
<[email protected]<mailto:[email protected]>> wrote:
You may try:
XWalkResourceClient.onLoadFinished
API spec is here:
https://crosswalk-project.org/apis/embeddingapidocs_v5/index.html
Regards,
Xing
From: Crosswalk-help
[mailto:[email protected]<mailto:[email protected]>]
On Behalf Of Aram Azhari
Sent: Wednesday, September 2, 2015 11:34 PM
To:
[email protected]<mailto:[email protected]>
Subject: [Crosswalk-help] Android XWalkView Embedded How to check if a page is
loaded completely
How can I check if a page is fully loaded with all its resources.
Note that I'm on Android using XWalkView in embedded mode.
Thanks.
--
Best Regards
Aram Azhari
--
Best Regards
Aram Azhari
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help