Search in sources :

Example 6 with RouterManager

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));
}
Also used : RouterManager(com.benmu.framework.manager.impl.RouterManager)

Example 7 with RouterManager

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);
    }
}
Also used : RouterManager(com.benmu.framework.manager.impl.RouterManager) RouterModel(com.benmu.framework.model.RouterModel)

Example 8 with RouterManager

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);
    }
}
Also used : RouterManager(com.benmu.framework.manager.impl.RouterManager) RouterModel(com.benmu.framework.model.RouterModel)

Example 9 with RouterManager

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);
}
Also used : RouterManager(com.benmu.framework.manager.impl.RouterManager)

Example 10 with RouterManager

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);
    }
}
Also used : RouterManager(com.benmu.framework.manager.impl.RouterManager)

Aggregations

RouterManager (com.benmu.framework.manager.impl.RouterManager)11 RouterModel (com.benmu.framework.model.RouterModel)2 JSCallback (com.taobao.weex.bridge.JSCallback)1