BackgroundExt.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:localcloud_fe 作者:
/**
 * Executes the request.
 *
 * @param action  The action to execute.
 * @param cordova The cordova interface.
 * @param webView The cordova web view.
 */
static void execute(String action, CordovaInterface cordova,
                    CordovaWebView webView) {

    BackgroundExt ext = new BackgroundExt(cordova, webView);

    if (action.equalsIgnoreCase("optimizations")) {
        ext.disableWebViewOptimizations();
    }

    if (action.equalsIgnoreCase("background")) {
        ext.moveToBackground();
    }

    if (action.equalsIgnoreCase("foreground")) {
        ext.moveToForeground();
    }

    if (action.equalsIgnoreCase("tasklist")) {
        ext.excludeFromTaskList();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号