public class BikeNavigateHelper
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static BikeNavigateHelper |
getInstance()
获取BikeNavigateHelper实例
|
MapView |
getNaviMap()
获取骑行导航底图对象
|
void |
initNaviEngine(Activity context,
IBEngineInitListener engineInitListener)
初始化导航引擎
|
View |
onCreate(Activity activity)
获取导航View
|
void |
pause()
导航过程生命周期函数, 暂停导航
|
void |
quit()
导航过程生命周期函数, 结束导航
|
void |
resume()
导航过程生命周期函数, 恢复导航
|
void |
routePlanWithParams(BikeNaviLaunchParam param,
IBRoutePlanListener routePlanListener)
|
void |
routePlanWithRouteNode(BikeNaviLaunchParam param,
IBRoutePlanListener routePlanListener)
开始算路
|
void |
setBikeNaviDisplayOption(BikeNaviDisplayOption bikeNaviDisplayOption)
设置骑行导航中的UI展示控制参数,该方法需要在
onCreate(Activity) 方法之前调用才能生效 |
void |
setBikeNaviStatusListener(IBNaviStatusListener listener)
设置导航状态监听,监听退出骑行导航状态
|
boolean |
setNaviMapUp()
将导航地图页设置在最上方,注:该方法需在onCreate之后调用
|
void |
setRouteGuidanceListener(Activity activity,
IBRouteGuidanceListener routeGuidanceListener)
设置诱导监听, 获取诱导信息
|
void |
setTTsPlayer(IBTTSPlayer ttsPlayer)
设置语音诱导监听, 获取语音诱导文本信息
|
void |
showUIDebuggable(java.lang.String debugStr)
debug UI模式显示文本
|
boolean |
startBikeNavi(Activity activity)
导航过程生命周期函数, 开始导航
|
void |
triggerLocation(WLocData locData)
外部传入GPS坐标点数据
|
void |
unInitNaviEngine()
释放导航引擎
|
public static BikeNavigateHelper getInstance()
public void initNaviEngine(Activity context, IBEngineInitListener engineInitListener)
engineInitListener
- 导航引擎回调接口public void unInitNaviEngine()
public void routePlanWithParams(BikeNaviLaunchParam param, IBRoutePlanListener routePlanListener)
routePlanWithRouteNode(com.baidu.mapapi.bikenavi.params.BikeNaviLaunchParam, com.baidu.mapapi.bikenavi.adapter.IBRoutePlanListener)
代替param
- 算路参数routePlanListener
- 算路结果回调public void routePlanWithRouteNode(BikeNaviLaunchParam param, IBRoutePlanListener routePlanListener)
param
- 算路参数routePlanListener
- 算路结果回调public void setRouteGuidanceListener(Activity activity, IBRouteGuidanceListener routeGuidanceListener)
routeGuidanceListener
- 诱导监听事件public void setTTsPlayer(IBTTSPlayer ttsPlayer)
ttsPlayer
- 语音诱导监听事件public void setBikeNaviStatusListener(IBNaviStatusListener listener)
listener
- public boolean startBikeNavi(Activity activity)
public void triggerLocation(WLocData locData)
locData
- public View onCreate(Activity activity)
activity
- public boolean setNaviMapUp()
public MapView getNaviMap()
public void pause()
public void resume()
public void quit()
public void showUIDebuggable(java.lang.String debugStr)
debugStr
- 文本public void setBikeNaviDisplayOption(BikeNaviDisplayOption bikeNaviDisplayOption)
onCreate(Activity)
方法之前调用才能生效bikeNaviDisplayOption
- UI展示控制参数