java.lang.Object | |
↳ | com.tencent.map.lssupport.bean.TLSConfigPreference |
基础信息配置类。
需在开启司乘前配置。
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TLSConfigPreference() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static TLSConfigPreference | create() | ||||||||||
String |
getAccountId()
获取配置的用户ID。
| ||||||||||
String |
getDeviceId()
获取配置的设备ID。
| ||||||||||
static String |
getGlobalKey(Context applicationContext)
获取全局授权KEY
| ||||||||||
String |
getSecretKey()
获取配置里的SK
| ||||||||||
static void |
initGlobal(Context applicationContext)
全局初始化
| ||||||||||
boolean |
isDebuggable()
是否打开调试模式
| ||||||||||
TLSConfigPreference |
setAccountId(String accountId)
设置用户ID。
| ||||||||||
TLSConfigPreference |
setDebuggable(boolean debuggable)
设置调试模式
| ||||||||||
TLSConfigPreference |
setDeviceId(String deviceId)
设置设备ID。
| ||||||||||
TLSConfigPreference |
setKey(String key)
设置司乘KEY。
也可以在AndroidManifest中配置。 < meta-data android:name="com.tencent.map.ls.api_key" android:value="你的司乘key" /> | ||||||||||
TLSConfigPreference |
setSecretKey(String secretKey)
设置SecretKey (SK),防盗用
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
获取配置的用户ID。
获取配置的设备ID。
获取全局授权KEY
applicationContext | 应用上下文 |
---|
获取配置里的SK
全局初始化
applicationContext | 应用上下文 |
---|
是否打开调试模式
设置用户ID。
accountId | 用户id |
---|
设置调试模式
debuggable | 调试模式开关 |
---|
设置设备ID。
deviceId | 设备ID |
---|
设置司乘KEY。
也可以在AndroidManifest中配置。
< meta-data android:name="com.tencent.map.ls.api_key" android:value="你的司乘key" />
key | 司乘key 司机端与乘客端要保持一致 |
---|
设置SecretKey (SK),防盗用
secretKey | SK |
---|