Search in sources :

Example 1 with NavModule

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

the class EventNav method nav.

public void nav(String params, Context context) {
    ParseManager parseManager = ManagerFactory.getManagerService(ParseManager.class);
    NavModule navModule = parseManager.parseObject(params, NavModule.class);
    if (navModule != null) {
        String type = navModule.getType();
        if ("amap".equals(type)) {
            navByAmap(context, navModule);
        } else if ("baidu".equals(type)) {
            navByBaidumap(context, navModule);
        }
    }
}
Also used : NavModule(com.benmu.framework.model.NavModule) ParseManager(com.benmu.framework.manager.impl.ParseManager)

Aggregations

ParseManager (com.benmu.framework.manager.impl.ParseManager)1 NavModule (com.benmu.framework.model.NavModule)1