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


Java JavascriptInterface类代码示例

本文整理汇总了Java中org.xwalk.core.JavascriptInterface的典型用法代码示例。如果您正苦于以下问题:Java JavascriptInterface类的具体用法?Java JavascriptInterface怎么用?Java JavascriptInterface使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JavascriptInterface类属于org.xwalk.core包,在下文中一共展示了JavascriptInterface类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: webAppLoaded

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public void webAppLoaded() {
    webAppReady = true;
    if (progress != null) {
        progress.dismiss();
    }
    registerForGCM();
}
 
开发者ID:ello,项目名称:ello-android,代码行数:9,代码来源:MainActivity.java

示例2: exec

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public String exec(int bridgeSecret, String service, String action, String callbackId, String arguments) throws JSONException, IllegalAccessException {
    if (Looper.myLooper() == null) {
        Looper.prepare();
    }
    return bridge.jsExec(bridgeSecret, service, action, callbackId, arguments);
}
 
开发者ID:infil00p,项目名称:cordova-plugin-crosswalk-webview,代码行数:8,代码来源:XWalkExposedJsApi.java

示例3: enter

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public void enter(final String title, final String article) {
    runOnUiThread(() -> {
        readerModeInjected = true;
        try {
            enterReaderMode(title, article);
        } catch (IOException e) {
            Log.e(TAG, "console: failed entering reader mode", e);
        }
    });
}
 
开发者ID:oxoooo,项目名称:excited-android,代码行数:12,代码来源:BrowserActivity.java

示例4: unavailable

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public void unavailable() {
    runOnUiThread(() -> {
        readerModeInjected = true;
        toolbarSwitch.setVisibility(View.GONE);
    });
}
 
开发者ID:oxoooo,项目名称:excited-android,代码行数:8,代码来源:BrowserActivity.java

示例5: postMessage

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public void postMessage(String message) {
    mContext.onMessage(message);
}
 
开发者ID:KingBarbarian,项目名称:react-native-android-new-crosswalk,代码行数:5,代码来源:CrosswalkWebView.java

示例6: start

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public void start() {
    onStart();
}
 
开发者ID:AltimitSystems,项目名称:mv-android-client,代码行数:5,代码来源:PlayerHelper.java

示例7: prepare

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public void prepare(boolean webgl, boolean webaudio, boolean showfps) {
    onPrepare(webgl, webaudio, showfps);
}
 
开发者ID:AltimitSystems,项目名称:mv-android-client,代码行数:5,代码来源:PlayerHelper.java

示例8: setNativeToJsBridgeMode

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public void setNativeToJsBridgeMode(int bridgeSecret, int value) throws IllegalAccessException {
    bridge.jsSetNativeToJsBridgeMode(bridgeSecret, value);
}
 
开发者ID:infil00p,项目名称:cordova-plugin-crosswalk-webview,代码行数:5,代码来源:XWalkExposedJsApi.java

示例9: retrieveJsMessages

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public String retrieveJsMessages(int bridgeSecret, boolean fromOnlineEvent) throws IllegalAccessException {
    return bridge.jsRetrieveJsMessages(bridgeSecret, fromOnlineEvent);
}
 
开发者ID:infil00p,项目名称:cordova-photosphere-example,代码行数:5,代码来源:XWalkExposedJsApi.java

示例10: openImage

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public void openImage(final String url) {
    runOnUiThread(() -> openWebImage(url));
}
 
开发者ID:oxoooo,项目名称:excited-android,代码行数:5,代码来源:BrowserActivity.java

示例11: exec

import org.xwalk.core.JavascriptInterface; //导入依赖的package包/类
@JavascriptInterface
public String exec(int bridgeSecret, String service, String action, String callbackId, String arguments) throws JSONException, IllegalAccessException {
    return bridge.jsExec(bridgeSecret, service, action, callbackId, arguments);
}
 
开发者ID:Hanul,项目名称:Wetube,代码行数:5,代码来源:ExposedJsApi.java


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