Package com.baidu.navisdk.adapter
Interface IBNRouteResultManager
-
public interface IBNRouteResultManager
路线结果页 该页面需要收到算路成功消息后才能展示结果
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IBNRouteResultManager.ICalcRouteByViaListener
长途路线气泡增删途径点算路事件static interface
IBNRouteResultManager.IRouteClickedListener
路线点击事件static interface
IBNRouteResultManager.IThroughNodeClickedListener
途径点的点击事件static interface
IBNRouteResultManager.NearbySearchKeyword
沿途搜keystatic interface
IBNRouteResultManager.PoiSearchListener
沿途搜回调
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addYellowTipsToContainer(ViewGroup viewGroup)
为小黄条增加一个容器void
fullView()
全览当前路线void
fullViewByNode(java.util.List<BNRoutePlanNode> nodes)
根据传入的坐标点全览图区,传入的坐标点不得小于2个void
handleCheckpointClick(boolean checked)
处理长途检查站按钮的点击void
handleCityClick(boolean checked)
处理长途途径市按钮的点击void
handleRouteClick(boolean checked)
处理长途途径路按钮的点击void
handleServiceClick(boolean checked)
处理长途途径服务区按钮的点击void
handleWeatherClick(boolean checked)
处理长途天气按钮的点击boolean
isLongDistance()
获取是否是长途void
onCreate(Context context)
生命周期onCreate,在Activity#onCreate()} 或者 Fragment#onCreateView()} 中调用void
onDestroy()
生命周期onDestroy,在Activity#onDestroy()} 或者 Fragment#onDestroy()} 中调用void
onPause()
生命周期onPause,在Activity#onPause()} 或者 Fragment#onPause()} 中调用void
onResume()
生命周期onResume,在Activity#onResume()} 或者 Fragment#onResume()} 中调用void
poiSearch(java.util.ArrayList<java.lang.String> types, IBNRouteResultManager.PoiSearchListener listener)
沿途搜void
removeYellowTipsFromContainer()
移出小黄条void
selectRoute(int index)
根据路线索引选择路线void
setCalcRouteByViaListener(IBNRouteResultManager.ICalcRouteByViaListener listener)
内置长途路线气泡增删途径点算路事件监听void
setOnThroughNodeClickListener(IBNRouteResultManager.IThroughNodeClickedListener listener)
途经点点击事件,监听事件该可自定义途径点气泡样式 注:如果监听了该事件,SDK内置途经点气泡不会展示void
setRouteClickedListener(IBNRouteResultManager.IRouteClickedListener listener)
路线点击事件监听void
showTruckLimitIcon(boolean show)
展示货车四限icon(宽高重禁)boolean
startNavi()
开启专业导航
-
-
-
Method Detail
-
onCreate
void onCreate(Context context)
生命周期onCreate,在Activity#onCreate()} 或者 Fragment#onCreateView()} 中调用
-
onResume
void onResume()
生命周期onResume,在Activity#onResume()} 或者 Fragment#onResume()} 中调用
-
onPause
void onPause()
生命周期onPause,在Activity#onPause()} 或者 Fragment#onPause()} 中调用
-
onDestroy
void onDestroy()
生命周期onDestroy,在Activity#onDestroy()} 或者 Fragment#onDestroy()} 中调用
-
addYellowTipsToContainer
void addYellowTipsToContainer(ViewGroup viewGroup)
为小黄条增加一个容器- Parameters:
viewGroup
- 添加小黄条的容器
-
removeYellowTipsFromContainer
void removeYellowTipsFromContainer()
移出小黄条
-
selectRoute
void selectRoute(int index)
根据路线索引选择路线
-
fullView
void fullView()
全览当前路线
-
fullViewByNode
void fullViewByNode(java.util.List<BNRoutePlanNode> nodes)
根据传入的坐标点全览图区,传入的坐标点不得小于2个
-
startNavi
boolean startNavi()
开启专业导航- Returns:
- 返回true,代表可以跳转至专业导航
-
isLongDistance
boolean isLongDistance()
获取是否是长途
-
showTruckLimitIcon
void showTruckLimitIcon(boolean show)
展示货车四限icon(宽高重禁)
-
handleCityClick
void handleCityClick(boolean checked)
处理长途途径市按钮的点击- Parameters:
checked
- 按钮是否选中
-
handleRouteClick
void handleRouteClick(boolean checked)
处理长途途径路按钮的点击- Parameters:
checked
- 按钮是否选中
-
handleServiceClick
void handleServiceClick(boolean checked)
处理长途途径服务区按钮的点击- Parameters:
checked
- 按钮是否选中
-
handleCheckpointClick
void handleCheckpointClick(boolean checked)
处理长途检查站按钮的点击- Parameters:
checked
- 按钮是否选中
-
handleWeatherClick
void handleWeatherClick(boolean checked)
处理长途天气按钮的点击- Parameters:
checked
- 按钮是否选中
-
setRouteClickedListener
void setRouteClickedListener(IBNRouteResultManager.IRouteClickedListener listener)
路线点击事件监听
-
setOnThroughNodeClickListener
void setOnThroughNodeClickListener(IBNRouteResultManager.IThroughNodeClickedListener listener)
途经点点击事件,监听事件该可自定义途径点气泡样式 注:如果监听了该事件,SDK内置途经点气泡不会展示
-
setCalcRouteByViaListener
void setCalcRouteByViaListener(IBNRouteResultManager.ICalcRouteByViaListener listener)
内置长途路线气泡增删途径点算路事件监听
-
poiSearch
void poiSearch(java.util.ArrayList<java.lang.String> types, IBNRouteResultManager.PoiSearchListener listener)
沿途搜- Parameters:
types
- 搜索类型IBNRouteResultManager.NearbySearchKeyword
listener
-
-
-