public class AMapNaviViewOptions
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AMapNaviViewOptions.VoiceAssistSettings
导航过程中语音辅助功能设置
Voice assistance settings during navigation 注意: Note: 所有设置仅对使用内置语音时才会生效,开启与关闭内置语音请参考: AMapNavi.setUseInnerVoice(boolean, boolean) All settings only take effect when using the built-in voice. |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
HUD_MIRROR_SHOW
HUD镜像显示(数值:2)
HUD mirror display (value: 2) |
static int |
HUD_NORMAL_SHOW
HUD正向显示(数值:1)
HUD normal display (value: 1) |
| 构造器和说明 |
|---|
AMapNaviViewOptions() |
| 限定符和类型 | 方法和说明 |
|---|---|
Bitmap |
getCarBitmap()
获取车标的bitmap对象
Get the bitmap object of the vehicle icon |
Bitmap |
getFourCornersBitmap()
获取罗盘位图对象
Get the compass bitmap object. |
int |
getLeaderLineColor()
获取牵引线颜色
Get the guide line color |
long |
getLockMapDelayed()
获取锁定地图延迟毫秒数
Get the map lock delay in milliseconds. |
double |
getMapCenter_X()
自车位置锁定在x轴的位置,范围:(0,1]。
|
double |
getMapCenter_Y()
自车位置锁定在y轴的位置,范围:(0,1]。
|
float |
getMaxAutoZoom()
获取自动缩放地图的最大级别
Get the maximum zoom level of the auto-scaling map |
float |
getMinAutoZoom()
获取自动缩放地图的最小级别
Obtain the minimum zoom level of the auto-scaling map |
int |
getTilt()
获取锁车态下地图倾角
Get the map tilt angle under vehicle lock state |
int |
getZoom()
获取锁车下地图缩放等级(仅在关闭了动态比例尺下生效)
Get the map zoom level under vehicle lock (only effective when dynamic scale is turned off) |
boolean |
isAutoChangeZoom()
是否开启了动态比例尺 (锁车态下自动进行地图缩放变化)
Whether dynamic scale is enabled (automatically zoom the map under vehicle lock state) |
boolean |
isAutoDrawRoute()
是否自动画路,默认为True,此时当算路成功后会立即自动画路
Whether to automatically draw the route, default is True, at this time the route will be automatically drawn immediately after successful route calculation |
boolean |
isCompassEnabled()
已过时。
此接口已失效
This interface is deprecated. |
boolean |
isEyrieCrossDisplay()
是否显示鹰巢路口放大图
Whether to display Eagle Nest intersection enlargement map |
boolean |
isLaneInfoShow()
是否显示道路信息view
Whether to display road information view |
boolean |
isLayoutVisible()
获取当前导航界面是否显示
Get whether the current navigation interface is displayed. |
boolean |
isLeaderLineEnabled()
返回是否绘制牵引线
Return whether to draw the guide line. |
boolean |
isModelCrossDisplayShow()
是否显示路口放大图(路口模型图)
Whether to display intersection enlargement map (intersection model map) |
boolean |
isRealCrossDisplayShow()
是否显示路口放大图(实景图)
Whether to display intersection enlargement map (real scene map) |
boolean |
isRouteListButtonShow()
是否显示路线全览按钮
Whether to display route overview button |
boolean |
isSettingMenuEnabled()
设置菜单按钮是否显示
Set whether the menu button is displayed. |
boolean |
isStopTtsWhenNaviExit()
退出导航页面是否停止内置语音播报,默认值:true,停止
Whether to stop built-in voice broadcast when exiting the navigation page, default value: true, stop |
boolean |
isTrafficLayerEnabled()
是否显示实时交通图层开关按钮(只适用于驾车导航,需要联网)
Whether to display real-time traffic layer switch button (only applicable to driving navigation, requires internet connection) |
boolean |
isTrafficLine()
地图上是否显示交通路况(彩虹线)
Whether to display traffic conditions (rainbow lines) on the map. |
void |
setAfterRouteAutoGray(boolean afterRouteAutoGray)
通过路线是否自动置灰
Whether passed routes are automatically grayed out. |
void |
setAMapNaviType(AmapNaviType naviType)
设置导航类型。
|
void |
setAutoChangeZoom(boolean isAutoChangeZoom)
设置是否开启动态比例尺 (锁车态下自动进行地图缩放变化)
Set whether to enable dynamic scale (automatically zoom the map under vehicle lock state) |
void |
setAutoDisplayOverview(boolean isAutoDisplay)
设置是否自动全览模式,即在算路成功后自动进入全览模式
Set whether to enable automatic overview mode, that is, automatically enter overview mode after successful route calculation |
void |
setAutoDrawRoute(boolean autoDrawRoute)
设置是否自动画路
Set whether to automatically draw the route |
void |
setAutoLockCar(boolean autoLockCar)
设置6秒后是否自动锁车
Set whether to automatically lock the vehicle after 6 seconds |
void |
setAutoNaviViewNightMode(boolean isAutoNaviViewNightMode)
|
void |
setAutoZoomRange(float minZoom,
float maxZoom)
设置自动缩放地图的缩放范围。
|
void |
setBroadcastModeEnabled(boolean enabled)
设置是否启用播报模式控件
Set whether to enable broadcast mode control |
void |
setCameraBubbleShow(boolean cameraBubbleShow)
|
void |
setCarBitmap(Bitmap carBitmap)
设置自车的图片对象
Set the image object of the vehicle |
void |
setCompassEnabled(java.lang.Boolean enabled)
已过时。
此接口已失效
This interface is deprecated. |
void |
setCrossLocation(Rect landscape,
Rect vertical)
已过时。
|
void |
setCustomMapStylePath(java.lang.String path)
|
void |
setDrawBackUpOverlay(boolean drawBackUpRouteOverlay)
设置是否绘制备选路线,只是控制是否绘制,并不影响多备选路线功能
Set whether to draw alternative routes, only controls whether to draw, does not affect the multi-alternative route function |
void |
setEagleMapVisible(boolean show)
设置鹰眼小地图是否显示
Set whether to display Eagle Eye mini map |
void |
setEndPointBitmap(Bitmap icon)
设置终点位图,须在画路前设置
Set the end point bitmap, must be set before drawing the route |
void |
setFourCornersBitmap(Bitmap fourCornersBitmap)
设置罗盘位图对象
Set the compass bitmap object |
void |
setLaneInfoShow(boolean isLaneInfoShow)
设置是否显示道路信息view
Set whether to display road information view |
void |
setLayoutVisible(boolean isLayoutVisible)
设置导航界面UI是否显示
Set whether the navigation interface UI is displayed. |
void |
setLeaderLineEnabled(int color)
设置是否绘制牵引线(当前位置到目的地的指引线),默认不绘制牵引线
Set whether to draw the guide line (guidance line from current position to destination), Default is not to draw the guide line. |
void |
setLockMapDelayed(long lockMapDelayed)
设置锁定地图延迟毫秒数
Set the map lock delay in milliseconds. |
void |
setMapStyle(MapStyle mapStyle,
java.lang.String customStylePath)
设置地图的显示样式
Set the display style of the map |
void |
setModeCrossDisplayShow(boolean isCrossDisplayShow)
已过时。
此方法已过期,使用
AMapNaviViewOptions.setEyrieCrossDisplay(boolean show)来控制路口大图显隐This method is deprecated, use AMapNaviViewOptions.setEyrieCrossDisplay(boolean show) to control the display\/hide of intersection overview |
void |
setMonitorCameraBitmap(Bitmap icon)
设置导航路线上的摄像头监控图标(只适用于驾车导航)
Set the camera monitoring icon on the navigation route (only applicable to driving navigation). |
void |
setNaviArrowVisible(boolean isArrow)
设置路线转向箭头隐藏和显示
Set route turn arrow hide and show |
void |
setNaviMode(int mode)
设置导航模式, 默认值:AMapNaviView.CAR_UP_MODE, 车头向上模式
Set navigation mode, default: AMapNaviView.CAR_UP_MODE, heading-up mode 注意:从10.0.820开始,已不建议使用 AMapNaviView.setNaviMode(int), Note: Starting from version 10.0.820, it is no longer recommended for use AMapNaviView.setNaviMode(int),
如果您之前有调用AMapNaviView.setNaviMode(int)请保证AMapNaviView.setNaviMode(int) If you have previously called AMapNaviView.setNaviMode(int) Please ensure AMapNaviView.setNaviMode(int)
设置的值与该值一致,否则以最后一次的设置为准。 |
void |
setNaviNight(boolean isNight)
|
void |
setNaviStatusBarEnabled(boolean naviStatusBarEnabled)
设置是否启用导航状态栏
Set whether to enable navigation status bar |
void |
setOverBitmap(Bitmap defaultBitmap,
Bitmap pressedBitmap)
设置全览按钮的默认图片和点击图片(默认态与点击态图片同时设置才生效)
Set the default image and click image of the overview button (both default and click state images need to be set simultaneously to take effect) |
void |
setPointToCenter(double x,
double y)
设置自车位置锁定在屏幕中的位置
Set the vehicle position locked in the screen |
void |
setRealCrossDisplayShow(boolean isCrossDisplayEnabled)
已过时。
使用
AMapNaviViewOptions.setEyrieCrossDisplay(boolean)代替当前调用方式Use AMapNaviViewOptions.setEyrieCrossDisplay(boolean)Replace the current calling method |
void |
setRestrictAreaInfoStatus(boolean drawRestrictArea)
设置是否绘制限行图层,注意只影响绘制,只会在算路页面显示,默认值:false,不显示
"Set whether to draw the traffic restriction layer. |
void |
setRouteListButtonShow(boolean isShow)
设置导航界面是否显示路线全览按钮
Set whether the route overview button is displayed in the navigation interface. |
void |
setRouteOverlayOptions(RouteOverlayOptions routeOverlayOptions)
设置导航内置主路线相关的属性,如:路线的路况颜色,路线上是否显示摄像头气泡等
Set navigation built-in main route related properties, such as: route traffic condition colors, whether to display camera bubbles on the route, etc. |
void |
setRouteStrategy(int routeStrategy)
设置规划路线的策略,
Set route planning strategy 默认为 PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT,速度优先+躲避拥堵+距离较短 Default PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT, Speed priority + Avoid congestion + Shorter distance |
void |
setSecondActionVisible(boolean visible)
设置是否显示下下个路口的转向引导,默认不显示
Set whether to display turn guidance for the next next intersection, default is not display. |
void |
setSensorEnable(boolean sensorEnable)
自车图标是否使用陀螺仪方向(只在骑行导航和步行导航下有效)
Whether the vehicle icon uses gyroscope direction (only valid in cycling and walking navigation) |
void |
setSettingMenuEnabled(java.lang.Boolean enabled)
设置菜单按钮是否在导航界面显示
Set whether the menu button is displayed in the navigation interface. |
void |
setShowCameraDistance(boolean show)
设置电子眼的距离是否显示
Set whether to display the distance of electronic eye |
void |
setShowNaviPopTips(boolean isShow)
导航过程中是否显示底部的tips, 包括:路线切换,禁限行提示等,默认值:true, 显示
导航过程中是否显示底部的tips, 包括:路线切换,禁限行提示等,默认值:true, 显示\":{\"en\":\"Whether to display the bottom tips during navigation, including: route switching, traffic restriction prompts, etc. |
void |
setShowRouteStrategyPreferencePanel(boolean isShow)
设置路径规划偏好策略面板是否显示, 默认值:true, 显示
"Set whether the route planning preference strategy panel is displayed. |
void |
setShowSettingsPanel(boolean isShow)
设置当点击设置按钮时是否显示默认的设置面板。
|
void |
setStartPointBitmap(Bitmap icon)
设置起点位图,须在画路前设置
Set the start point bitmap, must be set before drawing the route |
void |
setStopTtsWhenNaviExit(boolean stopTtsWhenNaviExit)
退出导航页面是否停止内置语音播报,默认值:true,停止
Whether to stop built-in voice broadcast when exiting the navigation page, default value: true, stop |
void |
setTilt(int tilt)
设置锁车态下地图倾角
Set the map tilt angle under vehicle lock state. |
void |
setTrafficBarEnabled(java.lang.Boolean enabled)
设置路况光柱条是否显示(只适用于驾车导航,需要联网)
Set whether the traffic condition light column bar is displayed (only applicable to driving navigation, requires internet connection). |
void |
setTrafficBitmap(Bitmap defaultBitmap,
Bitmap pressedBitmap)
设置路况按钮的开启态图片和关闭态图片(开启态与关闭态图片同时设置才生效)
Set the enabled state image and disabled state image of the traffic condition button (both enabled and disabled state images need to be set simultaneously to take effect) |
void |
setTrafficLayerEnabled(java.lang.Boolean enabled)
设置[实时交通图层开关按钮]是否显示(只适用于驾车导航,需要联网)
Set whether the [real-time traffic layer switch button] is displayed (only applicable to driving navigation, requires internet connection). |
void |
setTrafficLine(boolean enabled)
设置地图上是否显示交通路况(彩虹线)
Set whether to display traffic conditions (rainbow lines) on the map. |
void |
setVoiceAssistSettings(AMapNaviViewOptions.VoiceAssistSettings voiceAssistSettings)
设置语音辅助功能的相关配置项
Set the relevant configuration items for voice assistance function |
void |
setWayPointBitmap(Bitmap icon)
设置导航过程中的途经点位图,须在画路前设置
Set the waypoint bitmap during navigation, must be set before drawing the route |
void |
setWidgetOverSpeedPulseEffective(boolean effective)
设置超速脉冲是否显示
Set whether to display overspeed pulse |
void |
setZoom(int zoom)
设置锁车下地图缩放等级(仅在关闭了动态比例尺下生效)
Set the map zoom level under vehicle lock (only effective when dynamic scale is turned off) |
public static final int HUD_NORMAL_SHOW
public static final int HUD_MIRROR_SHOW
public void setDrawBackUpOverlay(boolean drawBackUpRouteOverlay)
drawBackUpRouteOverlay - 默认为true,设置false不会绘制备选路线public void setAfterRouteAutoGray(boolean afterRouteAutoGray)
可以使用RouteOverlayOptions.setPassRoute(Bitmap)改变纹理
Can use RouteOverlayOptions.setPassRoute(Bitmap) to change texture
afterRouteAutoGray - public void setAutoLockCar(boolean autoLockCar)
autoLockCar - true代表自动锁车,false代表不自动锁车public void setCameraBubbleShow(boolean cameraBubbleShow)
RouteOverlayOptions.setOnRouteCameShow(boolean) 与 AMapNaviViewOptions.setRouteOverlayOptions(RouteOverlayOptions) 使用RouteOverlayOptions.setOnRouteCameShow(boolean) and AMapNaviViewOptions.setRouteOverlayOptions(RouteOverlayOptions)cameraBubbleShow - true代表显示,false代表不显示public void setSensorEnable(boolean sensorEnable)
sensorEnable - true自车图标使用陀螺仪方向, false自车图标使用路线行进方向。public void setRouteOverlayOptions(RouteOverlayOptions routeOverlayOptions)
routeOverlayOptions - public void setCrossLocation(Rect landscape,
Rect vertical)
AMapNaviViewOptions.setEyrieCrossLocation(Rect, Rect)来控制路口大图位置
路口放大图分为模型图和实景图,这里设置的是模型图的位置.
The intersection enlargement map is divided into model map and real scene map, here sets the position of the model map.
实景图可通过自定义ZoomInIntersectionView进行设置.
Real scene map can be set through custom ZoomInIntersectionView.
landscape - 横屏路口放大图显示位置。vertical - 竖屏路口放大图显示位置。public Bitmap getCarBitmap()
public void setCarBitmap(Bitmap carBitmap)
carBitmap - 车标对象public Bitmap getFourCornersBitmap()
public void setFourCornersBitmap(Bitmap fourCornersBitmap)
fourCornersBitmap - public boolean isCompassEnabled()
public void setCompassEnabled(java.lang.Boolean enabled)
true,显示;false,隐藏
true, display; false, hide.
enabled - true,显示;false,隐藏。public void setTrafficBarEnabled(java.lang.Boolean enabled)
enabled - 路况光柱条是否在导航界面显示,默认为true,代表显示路况光柱条。true,显示;false,隐藏。public boolean isTrafficLayerEnabled()
public void setTrafficLayerEnabled(java.lang.Boolean enabled)
enabled - 实时实时交通图层开关按钮是否在导航界面显示,默认为true,代表显示实时交通图层。true,显示;false,隐藏。public boolean isRouteListButtonShow()
public void setRouteListButtonShow(boolean isShow)
isShow - 设置全览按钮是否在导航界面显示,默认显示。true,显示;false,隐藏。public void setNaviNight(boolean isNight)
AMapNaviViewOptions.setMapStyle(MapStyle mapStyle, String customStylePath)AMapNaviViewOptions.setMapStyle(MapStyle mapStyle, String customStylePath)
此方法与AMapNaviViewOptions.setCustomMapStylePath(String path)方法相斥,不可同时调用.
This method is mutually exclusive with AMapNaviViewOptions.setCustomMapStylePath(String path) method, cannot be called simultaneously.
isNight - 导航界面是否显示黑夜模式。true代表显示;false代表不显示。public void setAutoNaviViewNightMode(boolean isAutoNaviViewNightMode)
AMapNaviViewOptions.setMapStyle(MapStyle mapStyle, String customStylePath)AMapNaviViewOptions.setMapStyle(MapStyle mapStyle, String customStylePath)isAutoNaviViewNightMode - public void setCustomMapStylePath(java.lang.String path)
AMapNaviViewOptions.setMapStyle(MapStyle mapStyle, String customStylePath)AMapNaviViewOptions.setMapStyle(MapStyle mapStyle, String customStylePath)
此方法与AMapNaviViewOptions.setNaviNight(boolean isNight)方法相斥,不可同时调用.
This method is mutually exclusive with AMapNaviViewOptions.setNaviNight(boolean isNight) method, cannot be called simultaneously.
public void setMapStyle(MapStyle mapStyle, java.lang.String customStylePath)
mapStyle - 地图样式类型 MapStyleMapStylecustomStylePath - 自定义地图样式文件路径,仅在 mapStyle 为 MapStyle.CUSTOM 时生效MapStyle.CUSTOMpublic void setStartPointBitmap(Bitmap icon)
icon - 起点位图public void setEndPointBitmap(Bitmap icon)
icon - 终点位图public void setWayPointBitmap(Bitmap icon)
icon - 途经点位图public void setMonitorCameraBitmap(Bitmap icon)
icon - 指定自定义图标的Bitmap对象。public boolean isSettingMenuEnabled()
public void setSettingMenuEnabled(java.lang.Boolean enabled)
enabled - 菜单按钮是否在导航界面显示。true代表显示,false代表不显示。public boolean isTrafficLine()
拥堵-红色,畅通-绿色,缓慢-黄色,未知-蓝色。
Congestion-red, smooth-green, slow-yellow, unknown-blue.
public void setTrafficLine(boolean enabled)
拥堵-红色,畅通-绿色,缓慢-黄色,未知-蓝色。默认显示。
Congestion-red, smooth-green, slow-yellow, unknown-blue. Default is display.
enabled - true-显示交通路况;false-不显示交通路况public int getLeaderLineColor()
public boolean isLeaderLineEnabled()
public void setLeaderLineEnabled(int color)
color - 设置牵引线颜色,为ARGB格式。不显示牵引线时,颜色设置为-1即可。public boolean isLayoutVisible()
public void setLayoutVisible(boolean isLayoutVisible)
注意:该接口会同时隐藏模型放大图和实景放大图,隐藏后可以通过AMapModeCrossOverlay绘制放大图
Note: This interface will hide both the model enlargement map and the real scene enlargement map at the same time. After hiding, the enlargement map can be drawn through AMapModeCrossOverlay
isLayoutVisible - true导航界面显示,false导航界面不显示。public long getLockMapDelayed()
public void setLockMapDelayed(long lockMapDelayed)
lockMapDelayed - 延迟毫秒。public boolean isAutoDrawRoute()
public void setAutoDrawRoute(boolean autoDrawRoute)
autoDrawRoute - true, 自动画路;false,不自动画路public boolean isRealCrossDisplayShow()
public void setRealCrossDisplayShow(boolean isCrossDisplayEnabled)
AMapNaviViewOptions.setEyrieCrossDisplay(boolean)代替当前调用方式AMapNaviViewOptions.setEyrieCrossDisplay(boolean)Replace the current calling methodisCrossDisplayEnabled - true,开启;false,不开启public boolean isModelCrossDisplayShow()
public void setModeCrossDisplayShow(boolean isCrossDisplayShow)
AMapNaviViewOptions.setEyrieCrossDisplay(boolean show)来控制路口大图显隐AMapNaviViewOptions.setEyrieCrossDisplay(boolean show) to control the display\/hide of intersection overviewisCrossDisplayShow - true,显示;false,不显示public boolean isLaneInfoShow()
public void setLaneInfoShow(boolean isLaneInfoShow)
isLaneInfoShow - true,显示;false,不显示public void setAutoZoomRange(float minZoom,
float maxZoom)
minZoom - 最小范围(不小于14)maxZoom - 最大范围(不大于18)public float getMinAutoZoom()
public float getMaxAutoZoom()
public int getZoom()
public void setZoom(int zoom)
zoom - 缩放等级,取值范围[14-18]public int getTilt()
public void setTilt(int tilt)
倾角为0时地图模式是2D模式。
When the tilt angle is 0, the map mode is 2D mode.
tilt - 倾角, 取值范围[0-60]public boolean isAutoChangeZoom()
public void setAutoChangeZoom(boolean isAutoChangeZoom)
isAutoChangeZoom - true,自动改变;false,不自动改变public void setPointToCenter(double x,
double y)
x - 取值范围:(0,1] 在x轴的位置,百分比。如设置0,则根据横/竖屏使用默认值。y - 取值范围:(0,1] 在y轴的位置,百分比。如设置0,则根据横/竖屏使用默认值。public double getMapCenter_X()
public double getMapCenter_Y()
public void setTrafficBitmap(Bitmap defaultBitmap,
Bitmap pressedBitmap)
defaultBitmap - 开启态图片pressedBitmap - 关闭态图片public void setOverBitmap(Bitmap defaultBitmap,
Bitmap pressedBitmap)
defaultBitmap - 默认的图片pressedBitmap - 点击的图片public void setAutoDisplayOverview(boolean isAutoDisplay)
isAutoDisplay - public void setNaviArrowVisible(boolean isArrow)
isArrow - public void setSecondActionVisible(boolean visible)
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
visible - true-显示,false-不显示public boolean isEyrieCrossDisplay()
public void setEagleMapVisible(boolean show)
show - public void setShowCameraDistance(boolean show)
show - public void setWidgetOverSpeedPulseEffective(boolean effective)
effective - public void setShowSettingsPanel(boolean isShow)
AMapNaviViewListener.onNaviSetting()回调时显示自己的设置面板 AMapNaviViewListener.onNaviSetting() Display your own settings panel during callback
isShow - 是否显示默认的设置面板 public void setShowRouteStrategyPreferencePanel(boolean isShow)
isShow - 是否显示, 默认值:true, 显示 public void setRouteStrategy(int routeStrategy)
PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT,速度优先+躲避拥堵+距离较短 PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULT, Speed priority + Avoid congestion + Shorter distancerouteStrategy - PathPlanningStrategy。
PathPlanningStrategy.DRIVING_MULTIPLE_ROUTES_DEFAULTPathPlanningStrategy.MOTOR_MULTIPLE_DEFAULTpublic void setNaviMode(int mode)
注意:从10.0.820开始,已不建议使用AMapNaviView.setNaviMode(int),
Note: Starting from version 10.0.820, it is no longer recommended for use AMapNaviView.setNaviMode(int),
如果您之前有调用AMapNaviView.setNaviMode(int)请保证AMapNaviView.setNaviMode(int)
If you have previously called AMapNaviView.setNaviMode(int) Please ensure AMapNaviView.setNaviMode(int)
设置的值与该值一致,否则以最后一次的设置为准。
The set value should match this value, otherwise the last setting will prevail
mode - 导航模式 AMapNaviView.CAR_UP_MODE车头向上模式 AMapNaviView.NORTH_UP_MODE-北朝上模式 AMapNaviView.CAR_UP_MODE North-up mode AMapNaviView.NORTH_UP_MODE-North-up modepublic void setVoiceAssistSettings(AMapNaviViewOptions.VoiceAssistSettings voiceAssistSettings)
voiceAssistSettings - 语音辅助功能相关配置项public void setRestrictAreaInfoStatus(boolean drawRestrictArea)
此功能为高级功能,如需使用,请先联系对应的商务开通权限。
This is a premium feature. Please contact the corresponding sales representative to activate the permission if you need to use it.
drawRestrictArea - true 绘制 false不绘制,默认为falsepublic void setShowNaviPopTips(boolean isShow)
isShow - 是否显示, true: 显示, false: 不显示public void setAMapNaviType(AmapNaviType naviType)
AmapNaviType.DRIVER, 驾车类型AmapNaviType.DRIVER, driving type
注意:AmapNaviType.DRIVER和AmapNaviType.MOTORCYCLE这两种类型的设置AmapNaviType.DRIVER and AmapNaviType.MOTORCYCLE These two types of settings
AMapNavi.setIsNaviTravelView(boolean)进行设置naviType - 导航类型public boolean isStopTtsWhenNaviExit()
public void setStopTtsWhenNaviExit(boolean stopTtsWhenNaviExit)
stopTtsWhenNaviExit - true-停止;false-不停止public void setBroadcastModeEnabled(boolean enabled)
enabled - true-启用;false-不启用public void setNaviStatusBarEnabled(boolean naviStatusBarEnabled)
naviStatusBarEnabled - true-启用;false-不启用