use of com.eros.framework.manager.impl.RouterManager in project WeexErosFramework by bmfe.
the class EventWebView method toWebView.
public void toWebView(String params, Context context) {
RouterManager routerManager = ManagerFactory.getManagerService(RouterManager.class);
routerManager.toWebView(context, params);
// WebViewParamBean webViewParamBean = BMJsonParsManager.parseObject(params,
// WebViewParamBean.class);
// BMRouterManager.toWebView(context, webViewParamBean, AppConstant.WEBVIEW_CATEGORY, new
// TitleModel(webViewParamBean.getTitle(), null, false, "#07ae9c", true));
}
use of com.eros.framework.manager.impl.RouterManager in project WeexErosFramework by bmfe.
the class EventFinish method finish.
public void finish(Context context, JSCallback jscallback) {
RouterManager routerManager = ManagerFactory.getManagerService(RouterManager.class);
boolean result = routerManager.finish(context);
// if (activity != null && activity instanceof AbsWeexActivity) {
// AbsWeexActivity target = (AbsWeexActivity) activity;
// if (target.mUrl != null) {
// target.refresh();
// if (jscallback != null) {
// BaseResultBean bean = new BaseResultBean();
// bean.resCode = 0;
// bean.msg = activity.getClass().getSimpleName() + "刷新成功";
// jscallback.invoke(bean);
// }
// }
// }
}
use of com.eros.framework.manager.impl.RouterManager in project WeexErosFramework by bmfe.
the class EventOpen method open.
public void open(String params, Context context, List<JSCallback> callbacks) {
JSCallback backCallback = null;
JSCallback resultCallback = null;
if (callbacks.size() > 1) {
backCallback = callbacks.get(0);
resultCallback = callbacks.get(1);
} else if (callbacks.size() > 0) {
backCallback = callbacks.get(0);
}
RouterManager routerManager = ManagerFactory.getManagerService(RouterManager.class);
boolean result = routerManager.open(context, params, backCallback);
if (resultCallback != null) {
resultCallback.invoke(result ? WXConstant.OPEN_PAGE_SUCCESS : WXConstant.OPNE_PAGE_FAILED);
}
}
use of com.eros.framework.manager.impl.RouterManager in project WeexErosFramework by bmfe.
the class EventGetBackParams method getBackParams.
public void getBackParams(Context context, JSCallback jscallback) {
RouterManager routerManager = ManagerFactory.getManagerService(RouterManager.class);
RouterModel routerModel = routerManager.getParams(context);
if (routerModel != null && jscallback != null) {
jscallback.invoke(routerModel.params);
}
}
use of com.eros.framework.manager.impl.RouterManager in project WeexErosFramework by bmfe.
the class EventBack method back.
public void back(String params, Context context, JSCallback jscallback) {
RouterManager routerManager = ManagerFactory.getManagerService(RouterManager.class);
boolean result = routerManager.back(context, params);
if (jscallback != null) {
jscallback.invoke(result ? WXConstant.BACK_PAGE_SUCCESS : WXConstant.BACK_PAGE_FAILED);
}
}
Aggregations