use of com.eros.framework.model.WeexEventBean in project WeexErosFramework by bmfe.
the class RouterModule method nav.
@JSMethod(uiThread = true)
public void nav(String params) {
WeexEventBean weexEventBean = new WeexEventBean();
weexEventBean.setKey(WXEventCenter.EVENT_NAV);
weexEventBean.setContext(mWXSDKInstance.getContext());
weexEventBean.setJsParams(params);
ManagerFactory.getManagerService(DispatchEventManager.class).getBus().post(weexEventBean);
}
use of com.eros.framework.model.WeexEventBean in project WeexErosFramework by bmfe.
the class RouterModule method getParams.
@JSMethod(uiThread = true)
public void getParams(JSCallback callback) {
WeexEventBean weexEventBean = new WeexEventBean();
weexEventBean.setContext(mWXSDKInstance.getContext());
weexEventBean.setJscallback(callback);
weexEventBean.setKey(WXEventCenter.EVENT_GETPARAMS);
ManagerFactory.getManagerService(DispatchEventManager.class).getBus().post(weexEventBean);
}
use of com.eros.framework.model.WeexEventBean in project WeexErosFramework by bmfe.
the class TabBarModule method setInfo.
@JSMethod(uiThread = true)
public void setInfo(String params) {
WeexEventBean weexEventBean = new WeexEventBean();
weexEventBean.setJsParams(params);
weexEventBean.setKey(WXEventCenter.EVENT_TABBAR_SETTABBAR);
weexEventBean.setContext(mWXSDKInstance.getContext());
ManagerFactory.getManagerService(DispatchEventManager.class).getBus().post(weexEventBean);
}
use of com.eros.framework.model.WeexEventBean in project WeexErosFramework by bmfe.
the class TabBarModule method clearWatch.
@JSMethod(uiThread = true)
public void clearWatch(JSCallback callback) {
WeexEventBean weexEventBean = new WeexEventBean();
weexEventBean.setKey(WXEventCenter.EVENT_TABBAR_CLEARWATCH);
weexEventBean.setContext(mWXSDKInstance.getContext());
weexEventBean.setExpand(mWXSDKInstance.hashCode());
weexEventBean.setJscallback(callback);
ManagerFactory.getManagerService(DispatchEventManager.class).getBus().post(weexEventBean);
}
use of com.eros.framework.model.WeexEventBean in project WeexErosFramework by bmfe.
the class TabBarModule method openPage.
@JSMethod(uiThread = true)
public void openPage(String params) {
WeexEventBean weexEventBean = new WeexEventBean();
weexEventBean.setJsParams(params);
weexEventBean.setKey(WXEventCenter.EVENT_TABBAR_OPENPAGE);
weexEventBean.setContext(mWXSDKInstance.getContext());
ManagerFactory.getManagerService(DispatchEventManager.class).getBus().post(weexEventBean);
}
Aggregations