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


Java WXSDKEngine.getActivityNavBarSetter方法代码示例

本文整理汇总了Java中com.taobao.weex.WXSDKEngine.getActivityNavBarSetter方法的典型用法代码示例。如果您正苦于以下问题:Java WXSDKEngine.getActivityNavBarSetter方法的具体用法?Java WXSDKEngine.getActivityNavBarSetter怎么用?Java WXSDKEngine.getActivityNavBarSetter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.taobao.weex.WXSDKEngine的用法示例。


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

示例1: setNavBarLeftItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void setNavBarLeftItem(String param, JSCallback callback) {
    if (!TextUtils.isEmpty(param)) {
        if (WXSDKEngine.getActivityNavBarSetter() != null) {
            if (WXSDKEngine.getActivityNavBarSetter().setNavBarLeftItem(param)) {
                if (callback != null) {
                    callback.invoke(MSG_SUCCESS);
                }
                return;
            }
        }
    }

    if (callback != null) {
        callback.invoke(MSG_FAILED);
    }

}
 
开发者ID:weexext,项目名称:ucar-weex-core,代码行数:19,代码来源:UWXNavigatorModule2.java

示例2: pop

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void pop(String param, JSCallback callback) {

    if (WXSDKEngine.getActivityNavBarSetter() != null) {
        if (WXSDKEngine.getActivityNavBarSetter().pop(param)) {
            if (callback != null) {
                callback.invoke(MSG_SUCCESS);
            }
            return;
        }
    }

    if (mWXSDKInstance.getContext() instanceof Activity) {
        if (callback != null) {
            callback.invoke(MSG_SUCCESS);
        }
        ((Activity) mWXSDKInstance.getContext()).finish();
    }
}
 
开发者ID:natjs,项目名称:nat-explorer,代码行数:20,代码来源:NavigatorModule.java

示例3: setNavBarMoreItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void setNavBarMoreItem(String param, JSCallback callback) {
    if (!TextUtils.isEmpty(param)) {
        if (WXSDKEngine.getActivityNavBarSetter() != null) {
            if (WXSDKEngine.getActivityNavBarSetter().setNavBarMoreItem(param)) {
                if (callback != null) {
                    callback.invoke(MSG_SUCCESS);
                }
                return;
            }
        }
    }

    if (callback != null) {
        callback.invoke(MSG_FAILED);
    }
}
 
开发者ID:weexext,项目名称:ucar-weex-core,代码行数:18,代码来源:UWXNavigatorModule2.java

示例4: setNavBarTitle

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void setNavBarTitle(String param, JSCallback callback) {
    if (!TextUtils.isEmpty(param)) {
        if (WXSDKEngine.getActivityNavBarSetter() != null) {
            if (WXSDKEngine.getActivityNavBarSetter().setNavBarTitle(param)) {
                if (callback != null) {
                    callback.invoke(MSG_SUCCESS);
                }
                return;
            }
        }
    }
    if (callback != null) {
        callback.invoke(MSG_FAILED);
    }
}
 
开发者ID:natjs,项目名称:nat-explorer,代码行数:17,代码来源:NavigatorModule.java

示例5: setNavBarLeftItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@WXModuleAnno
public void setNavBarLeftItem(String param, final String callbackId) {
    if (!TextUtils.isEmpty(param)) {
        if (WXSDKEngine.getActivityNavBarSetter() != null) {
            if (WXSDKEngine.getActivityNavBarSetter().setNavBarLeftItem(param)) {
                WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
                        MSG_SUCCESS);
                return;
            }
        }
    }

    WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
            MSG_FAILED);

}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:17,代码来源:WXNavigatorModule.java

示例6: setNavBarRightItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void setNavBarRightItem(String param, JSCallback callback) {
    if (!TextUtils.isEmpty(param)) {
        if (WXSDKEngine.getActivityNavBarSetter() != null) {
            if (WXSDKEngine.getActivityNavBarSetter().setNavBarRightItem(param)) {
                if (callback != null) {
                    callback.invoke(MSG_SUCCESS);
                }
                return;
            }
        }
    }

    if (callback != null) {
        callback.invoke(MSG_FAILED);
    }
}
 
开发者ID:weexext,项目名称:ucar-weex-core,代码行数:18,代码来源:UWXNavigatorModule2.java

示例7: pop

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@WXModuleAnno
public void pop(String param, final String callbackId) {

    if (WXSDKEngine.getActivityNavBarSetter() != null) {
        if (WXSDKEngine.getActivityNavBarSetter().pop(param)) {
            WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
                    MSG_SUCCESS);
            return;
        }
    }

    if (mWXSDKInstance.getContext() instanceof Activity) {
        WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
                                               MSG_SUCCESS);
        ((Activity) mWXSDKInstance.getContext()).finish();
    }
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:18,代码来源:WXNavigatorModule.java

示例8: setNavBarLeftItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@WXModuleAnno
public void setNavBarLeftItem(String param, final String callbackId) {
    if (!TextUtils.isEmpty(param)) {
        if (WXSDKEngine.getActivityNavBarSetter() != null) {
            if (WXSDKEngine.getActivityNavBarSetter().setNavBarLeftItem(param)) {
                WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
                        WXConst.MSG_SUCCESS);
                return;
            }
        }
    }

    WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
            WXConst.MSG_FAILED);

}
 
开发者ID:Laisly,项目名称:weex,代码行数:17,代码来源:WXNavigatorModule.java

示例9: clearNavBarLeftItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void clearNavBarLeftItem(String param, JSCallback callback) {
    if (WXSDKEngine.getActivityNavBarSetter() != null) {
        if (WXSDKEngine.getActivityNavBarSetter().clearNavBarLeftItem(param)) {
            callback.invoke(MSG_SUCCESS);
            return;
        }
    }

    callback.invoke(MSG_FAILED);
}
 
开发者ID:erguotou520,项目名称:weex-uikit,代码行数:12,代码来源:WXNavigatorModule.java

示例10: clearNavBarLeftItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void clearNavBarLeftItem(String param, JSCallback callback) {
    if (WXSDKEngine.getActivityNavBarSetter() != null) {
        if (WXSDKEngine.getActivityNavBarSetter().clearNavBarLeftItem(param)) {
            if (callback != null) {
                callback.invoke(MSG_SUCCESS);
            }
            return;
        }
    }

    if (callback != null) {
        callback.invoke(MSG_FAILED);
    }
}
 
开发者ID:weexext,项目名称:ucar-weex-core,代码行数:16,代码来源:WXNavigatorModule.java

示例11: clearNavBarMoreItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void clearNavBarMoreItem(String param, JSCallback callback) {
    if (WXSDKEngine.getActivityNavBarSetter() != null) {
        if (WXSDKEngine.getActivityNavBarSetter().clearNavBarMoreItem(param)) {
            callback.invoke(MSG_SUCCESS);
            return;
        }
    }

    callback.invoke(MSG_FAILED);
}
 
开发者ID:erguotou520,项目名称:weex-uikit,代码行数:12,代码来源:WXNavigatorModule.java

示例12: clearNavBarRightItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void clearNavBarRightItem(String param, JSCallback callback) {
    if (WXSDKEngine.getActivityNavBarSetter() != null) {
        if (WXSDKEngine.getActivityNavBarSetter().clearNavBarRightItem(param)) {
            if (callback != null) {
                callback.invoke(MSG_SUCCESS);
            }
            return;
        }
    }
    if (callback != null) {
        callback.invoke(MSG_FAILED);
    }
}
 
开发者ID:weexext,项目名称:ucar-weex-core,代码行数:15,代码来源:WXNavigatorModule.java

示例13: clearNavBarMoreItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@JSMethod(uiThread = true)
public void clearNavBarMoreItem(String param, JSCallback callback) {
    if (WXSDKEngine.getActivityNavBarSetter() != null) {
        if (WXSDKEngine.getActivityNavBarSetter().clearNavBarMoreItem(param)) {
            if (callback != null) {
                callback.invoke(MSG_SUCCESS);
            }
            return;
        }
    }

    if (callback != null) {
        callback.invoke(MSG_FAILED);
    }
}
 
开发者ID:weexext,项目名称:ucar-weex-core,代码行数:16,代码来源:WXNavigatorModule.java

示例14: setNavBarRightItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@WXModuleAnno
public void setNavBarRightItem(String param, final String callbackId) {
    if (!TextUtils.isEmpty(param)) {
        if (WXSDKEngine.getActivityNavBarSetter() != null) {
            if (WXSDKEngine.getActivityNavBarSetter().setNavBarRightItem(param)) {
                WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
                        MSG_SUCCESS);
                return;
            }
        }
    }

    WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
            MSG_FAILED);
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:16,代码来源:WXNavigatorModule.java

示例15: clearNavBarRightItem

import com.taobao.weex.WXSDKEngine; //导入方法依赖的package包/类
@WXModuleAnno
public void clearNavBarRightItem(String param, final String callbackId) {
    if (WXSDKEngine.getActivityNavBarSetter() != null) {
        if (WXSDKEngine.getActivityNavBarSetter().clearNavBarRightItem(param)) {
            WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
                    MSG_SUCCESS);
            return;
        }
    }

    WXBridgeManager.getInstance().callback(mWXSDKInstance.getInstanceId(), callbackId,
            MSG_FAILED);
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:14,代码来源:WXNavigatorModule.java


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