当前位置: 首页>>代码示例>>Java>>正文


Java XWalkView.getUrl方法代码示例

本文整理汇总了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();
    }
}
 
开发者ID:infil00p,项目名称:cordova-plugin-crosswalk-webview,代码行数:19,代码来源:XWalkCordovaUiClient.java

示例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();
    }
}
 
开发者ID:infil00p,项目名称:cordova-photosphere-example,代码行数:20,代码来源:XWalkCordovaUiClient.java

示例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);
    }
}
 
开发者ID:ZachMoreno,项目名称:krakn,代码行数:23,代码来源:XWalkCordovaClient.java

示例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);
    }
}
 
开发者ID:ZachMoreno,项目名称:krakn,代码行数:23,代码来源:XWalkCordovaWebViewClient.java


注:本文中的org.xwalk.core.XWalkView.getUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。