public class BikeNavigateHelper
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static BikeNavigateHelper |
getInstance()
获取BikeNavigateHelper实例
|
BikeLightNaviManager |
getLightNaviManager() |
MapView |
getNaviMap()
获取骑行导航底图对象
|
BikeNormalNaviManager |
getNormalNaviManager() |
void |
initNaviEngine(Activity context,
IBEngineInitListener engineInitListener)
初始化导航引擎
|
boolean |
isInitEngine()
判断是否已初始化导航引擎且未将其释放
|
void |
naviToOverView()
轻导航恢复全览态
|
View |
onCreate(Activity activity)
获取导航View
|
void |
onDestroy(boolean isExitNavi)
退出导航
|
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)
设置导航状态监听,监听退出骑行导航状态
|
void |
setExtraNaviMode(BikeExtraNaviMode extraNaviMode)
设置骑行导航模式
|
void |
setIsSwitchNavi(boolean isSwitchNavi) |
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 boolean isInitEngine()
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 setIsSwitchNavi(boolean isSwitchNavi)
public void triggerLocation(WLocData locData)
locData
- public View onCreate(Activity activity)
activity
- public boolean setNaviMapUp()
public void naviToOverView()
public void setExtraNaviMode(BikeExtraNaviMode extraNaviMode)
extraNaviMode
- public MapView getNaviMap()
public BikeLightNaviManager getLightNaviManager()
public BikeNormalNaviManager getNormalNaviManager()
public void pause()
public void resume()
public void onDestroy(boolean isExitNavi)
isExitNavi
- 是否真正退出导航public void quit()
public void showUIDebuggable(java.lang.String debugStr)
debugStr
- 文本public void setBikeNaviDisplayOption(BikeNaviDisplayOption bikeNaviDisplayOption)
onCreate(Activity)
方法之前调用才能生效bikeNaviDisplayOption
- UI展示控制参数