Search in sources :

Example 1 with NavModule

use of com.eros.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.eros.framework.model.NavModule) ParseManager(com.eros.framework.manager.impl.ParseManager)

Aggregations

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