hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
| Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
com.hyphenate.chat.EMPreferenceUtils类 参考

class  Token
 

Public 成员函数

void setDNSConfigVersion (String version)
 
void setDNSConfig (String config)
 
void setDNSConfigTime (long time)
 
void setDNSValidBefore (long time)
 
long getDNSValidBefore ()
 
String getDNSVersion ()
 
String getDNSConfig ()
 
long getDNSTime ()
 
boolean hasReservedLogoutTime ()
 
long getLogoutTime ()
 
void setLogoutTime (long time)
 
void removeLogoutTime ()
 
void setDebugServer (String imAddress, String restAddress)
 
String getDebugIMAddress ()
 
String getDebugRestAddress ()
 
void setDebugAppkey (String appkey)
 
String getDebugAppkey ()
 
void setDebugMode (boolean debugMode)
 
String getDebugMode ()
 
void setGCMToken (String regId)
 
String getGCMToken ()
 

静态 Public 成员函数

static synchronized EMPreferenceUtils getInstance ()
 

成员函数说明

String com.hyphenate.chat.EMPreferenceUtils.getDNSConfig ( )

获取DNS xml

返回
long com.hyphenate.chat.EMPreferenceUtils.getDNSTime ( )

从Server获取DNSxml时间(毫秒)

返回
String com.hyphenate.chat.EMPreferenceUtils.getDNSVersion ( )

获取DNS 版本

返回
long com.hyphenate.chat.EMPreferenceUtils.getLogoutTime ( )

客服模式下获取预约的退出登录时间

返回
boolean com.hyphenate.chat.EMPreferenceUtils.hasReservedLogoutTime ( )

判断是否曾经预约过退出登录

返回
void com.hyphenate.chat.EMPreferenceUtils.removeLogoutTime ( )

删除已经存在的退出登录时间的记录

void com.hyphenate.chat.EMPreferenceUtils.setDNSConfig ( String  config)

设置DNS xml

void com.hyphenate.chat.EMPreferenceUtils.setDNSConfigTime ( long  time)

设置DNS xml的获取时间

参数
ddTime
void com.hyphenate.chat.EMPreferenceUtils.setDNSConfigVersion ( String  version)

设置DNS version

参数
ddVersion
void com.hyphenate.chat.EMPreferenceUtils.setLogoutTime ( long  time)

客服模式下设定预约的退出登录时间

返回

该类的文档由以下文件生成: