use of com.benmu.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.benmu.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.benmu.framework.manager.impl.RouterManager in project WeexErosFramework by bmfe.
the class EventGetParams method getParams.
public void getParams(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.benmu.framework.manager.impl.RouterManager in project WeexErosFramework by bmfe.
the class EventOpen method open.
public void open(String params, Context context) {
RouterManager routerManager = ManagerFactory.getManagerService(RouterManager.class);
routerManager.open(context, params, null);
}
use of com.benmu.framework.manager.impl.RouterManager in project WeexErosFramework by bmfe.
the class EventOpenBrowser method openBrowser.
public void openBrowser(Context context, String params, JSCallback callback) {
RouterManager managerService = ManagerFactory.getManagerService(RouterManager.class);
boolean b = managerService.openBrowser(context, params);
if (b) {
JsPoster.postSuccess(null, callback);
} else {
JsPoster.postFailed(callback);
}
}
Aggregations