Search in sources :

Example 6 with RouterModel

use of com.benmu.framework.model.RouterModel 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 7 with RouterModel

use of com.benmu.framework.model.RouterModel in project WeexErosFramework by bmfe.

the class PersistentManager method getCacheRouter.

public RouterModel getCacheRouter() {
    RouterModel router = mCacheRouter;
    mCacheRouter = null;
    return router;
}
Also used : RouterModel(com.benmu.framework.model.RouterModel)

Aggregations

RouterModel (com.benmu.framework.model.RouterModel)7 Activity (android.app.Activity)3 AbstractWeexActivity (com.benmu.framework.activity.AbstractWeexActivity)3 ParseManager (com.benmu.framework.manager.impl.ParseManager)3 Intent (android.content.Intent)2 RouterManager (com.benmu.framework.manager.impl.RouterManager)2 StorageManager (com.benmu.framework.manager.StorageManager)1 WebViewParamBean (com.benmu.framework.model.WebViewParamBean)1 Map (java.util.Map)1