本文整理汇总了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);
}
}
示例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();
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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();
}
}
示例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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}