Search in sources :

Example 11 with RouterManager

use of com.benmu.framework.manager.impl.RouterManager in project WeexErosFramework by bmfe.

the class EventRefresh method refresh.

public void refresh(Context context, JSCallback jscallback) {
    RouterManager routerManager = ManagerFactory.getManagerService(RouterManager.class);
    boolean result = routerManager.refresh(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);
// }
// }
// }
}
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