public class AMapNaviParkLimitInfo
extends java.lang.Object
implements java.lang.Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
static <any> |
CREATOR |
static java.lang.String |
DEFAULT_CUSTOM_TTS_TEXT
默认超速播报文案
|
| 限定符 | 构造器和说明 |
|---|---|
|
AMapNaviParkLimitInfo()
构造方法
|
protected |
AMapNaviParkLimitInfo(Parcel in) |
| 限定符和类型 | 方法和说明 |
|---|---|
AMapNaviParkLimitInfo |
clone() |
int |
describeContents() |
int |
getCustomLimitSpeed()
获取自定义限速信息
|
java.lang.String |
getCustomOverSpeedTTSText()
获取自定义超速播报文案
|
void |
setCustomLimitSpeed(int customLimitSpeed)
设置自定义限速值, 单位:公里/小时
注意:
自定义限速值超过道路限速值时,以道路限速值为准
自定义限速值必须大于0,小于等于0时不生效
|
void |
setCustomOverSpeedTTSText(java.lang.String ttsText)
设置自定义超速文案, 默认文案:“您已超速,请减速慢行”
注意:
当设置为null或者空时会使用默认文案
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final java.lang.String DEFAULT_CUSTOM_TTS_TEXT
public static final <any> CREATOR
public AMapNaviParkLimitInfo()
protected AMapNaviParkLimitInfo(Parcel in)
public java.lang.String getCustomOverSpeedTTSText()
public void setCustomOverSpeedTTSText(java.lang.String ttsText)
注意: 当设置为null或者空时会使用默认文案
ttsText - 自定义超速文案,默认文案:“您已超速,请减速慢行”public int getCustomLimitSpeed()
public void setCustomLimitSpeed(int customLimitSpeed)
注意:
customLimitSpeed - 限速值,单位:公里/小时public AMapNaviParkLimitInfo clone()
clone 在类中 java.lang.Objectpublic int describeContents()
public void writeToParcel(Parcel dest,
int flags)
dest - The Parcel in which the object should be written.flags - Additional flags about how the object should be written.
May be 0 or #PARCELABLE_WRITE_RETURN_VALUE.