本文整理汇总了Java中org.xwalk.core.XWalkView.getUrl方法的典型用法代码示例。如果您正苦于以下问题:Java XWalkView.getUrl方法的具体用法?Java XWalkView.getUrl怎么用?Java XWalkView.getUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.xwalk.core.XWalkView
的用法示例。
在下文中一共展示了XWalkView.getUrl方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onPageLoadStarted
import org.xwalk.core.XWalkView; //导入方法依赖的package包/类
/**
* Notify the host application that a page has started loading.
* This method is called once for each main frame load so a page with iframes or framesets will call onPageLoadStarted
* one time for the main frame. This also means that onPageLoadStarted will not be called when the contents of an
* embedded frame changes, i.e. clicking a link whose target is an iframe.
*
* @param view The webView initiating the callback.
* @param url The url of the page.
*/
@Override
public void onPageLoadStarted(XWalkView view, String url) {
LOG.d(TAG, "onPageLoadStarted(" + url + ")");
if (view.getUrl() != null) {
// Flush stale messages.
parentEngine.client.onPageStarted(url);
parentEngine.bridge.reset();
}
}
示例2: onPageLoadStarted
import org.xwalk.core.XWalkView; //导入方法依赖的package包/类
/**
* Notify the host application that a page has started loading.
* This method is called once for each main frame load so a page with iframes or framesets will call onPageStarted
* one time for the main frame. This also means that onPageStarted will not be called when the contents of an
* embedded frame changes, i.e. clicking a link whose target is an iframe.
*
* @param view The webView initiating the callback.
* @param url The url of the page.
*/
@Override
public void onPageLoadStarted(XWalkView view, String url) {
// Only proceed if this is a top-level navigation
if (view.getUrl() != null && view.getUrl().equals(url)) {
// Flush stale messages.
parentEngine.client.onPageStarted(url);
parentEngine.bridge.reset();
}
}
示例3: onPageStarted
import org.xwalk.core.XWalkView; //导入方法依赖的package包/类
/**
* Notify the host application that a page has started loading.
* This method is called once for each main frame load so a page with iframes or framesets will call onPageStarted
* one time for the main frame.
*
* In Crosswalk, this method is called for iframe navigations where the scheme is something other than http or https,
* which includes assets with the Cordova project, so we have to test for that, and not reset plugins in that case.
*
* @param view The webview initiating the callback.
* @param url The url of the page.
*/
@Override
public void onPageStarted(XWalkView view, String url) {
// Only proceed if this is a top-level navigation
if (view.getUrl() != null && view.getUrl().equals(url)) {
// Flush stale messages.
appView.onPageReset();
// Broadcast message that page has loaded
appView.getPluginManager().postMessage("onPageStarted", url);
}
}
示例4: onPageStarted
import org.xwalk.core.XWalkView; //导入方法依赖的package包/类
/**
* Notify the host application that a page has started loading.
* This method is called once for each main frame load so a page with iframes or framesets will call onPageStarted
* one time for the main frame.
*
* In Crosswalk, this method is called for iframe navigations where the scheme is something other than http or https,
* which includes assets with the Cordova project, so we have to test for that, and not reset plugins in that case.
*
* @param view The webview initiating the callback.
* @param url The url of the page.
*/
@Override
public void onPageStarted(XWalkView view, String url) {
// Only proceed if this is a top-level navigation
if (view.getUrl() != null && view.getUrl().equals(url)) {
// Flush stale messages.
this.appView.onPageReset();
// Broadcast message that page has loaded
this.appView.postMessage("onPageStarted", url);
}
}