hyphenate_SDK3.0
3.8.5
hyphenatejavaIMSDK
|
Public 成员函数 | |
boolean | getRequireAck () |
void | setRequireAck (boolean requireAck) |
boolean | getRequireDeliveryAck () |
void | setRequireDeliveryAck (boolean requireDeliveryAck) |
boolean | getAcceptInvitationAlways () |
void | setAcceptInvitationAlways (boolean value) |
void | setDeleteMessagesAsExitGroup (boolean delete) |
boolean | isDeleteMessagesAsExitGroup () |
void | setAutoAcceptGroupInvitation (boolean value) |
boolean | isAutoAcceptGroupInvitation () |
void | allowChatroomOwnerLeave (boolean allowed) |
boolean | isChatroomOwnerLeaveAllowed () |
void | setDeleteMessagesAsExitChatRoom (boolean delete) |
boolean | isDeleteMessagesAsExitChatRoom () |
boolean | isSortMessageByServerTime () |
void | setSortMessageByServerTime (boolean sortByServerTime) |
void | setAppKey (String appkey) |
String | getAppKey () |
void | setIMServer (String imServer) |
String | getImServer () |
void | setImPort (int imPort) |
int | getImPort () |
void | setRestServer (String restServer) |
String | getRestServer () |
String | getReportServer () |
void | setReportServer (String reportServer) |
void | setAutoLogin (boolean autoLogin) |
boolean | getAutoLogin () |
String | getFCMNumber () |
void | setFCMNumber (String number) |
boolean | isUseFCM () |
void | setUseFCM (boolean useFCM) |
void | setMipushConfig (String mipushAppid, String mipushAppkey) |
EMChatConfigPrivate.EMMipushConfig | getMipushConfig () |
void | enableDNSConfig (boolean enable) |
boolean | getEnableDNSConfig () |
void | setUseHttps (boolean _useHttps) |
void | setUsingHttpsOnly (boolean _usingHttpsOnly) |
boolean | getUsingHttpsOnly () |
void | setAutoTransferMessageAttachments (boolean transfer) |
boolean | getAutoTransferMessageAttachments () |
void | setAutoDownloadThumbnail (boolean autodownload) |
boolean | getAutodownloadThumbnail () |
void | setFixedHBInterval (int interval) |
int | getFixedInterval () |
String | getVersion () |
String | getAccessToken () |
String | getAccessToken (boolean b) |
void | setDnsUrl (String dnsUrl) |
String | getDnsUrl () |
EMPushConfig | getPushConfig () |
void | setPushConfig (EMPushConfig pushConfig) |
boolean | isEnableStatistics () |
void | setEnableStatistics (boolean enableStatistics) |
提供SDK聊天相关的设置 用户可以用来配置SDK的各种参数,选项 比如,发送消息加密,是否自动接受加好友邀请
void com.hyphenate.chat.EMOptions.allowChatroomOwnerLeave | ( | boolean | allowed | ) |
设置是否允许聊天室owner离开并删除会话记录 设置为true后owner不再接受任何消息
allowed | 是否允许聊天室owner离开 |
void com.hyphenate.chat.EMOptions.enableDNSConfig | ( | boolean | enable | ) |
设置是否关闭DNS 默认为true,私有云部署需要关闭
enable | 是否关闭DNS |
boolean com.hyphenate.chat.EMOptions.getAcceptInvitationAlways | ( | ) |
获取是否自动接受加好友邀请,缺省值为true
String com.hyphenate.chat.EMOptions.getAccessToken | ( | ) |
获取本地保存的访问令牌
String com.hyphenate.chat.EMOptions.getAccessToken | ( | boolean | b | ) |
是否从服务器获取访问令牌
b | 是否从服务器获取 |
String com.hyphenate.chat.EMOptions.getAppKey | ( | ) |
获取appkey
boolean com.hyphenate.chat.EMOptions.getAutodownloadThumbnail | ( | ) |
获取是否自动下载缩略图,默认为true
boolean com.hyphenate.chat.EMOptions.getAutoLogin | ( | ) |
获取是否自动登录
boolean com.hyphenate.chat.EMOptions.getAutoTransferMessageAttachments | ( | ) |
获取是否使用Chat服务器进行上传下载,默认值是true
String com.hyphenate.chat.EMOptions.getDnsUrl | ( | ) |
获取dns地址
boolean com.hyphenate.chat.EMOptions.getEnableDNSConfig | ( | ) |
获取是否关闭DNS,默认为true
String com.hyphenate.chat.EMOptions.getFCMNumber | ( | ) |
获取FCM(GCM升级版->FCM)推送id
int com.hyphenate.chat.EMOptions.getFixedInterval | ( | ) |
获取固定的心跳间隔
int com.hyphenate.chat.EMOptions.getImPort | ( | ) |
获取设置的im 服务器端口号
String com.hyphenate.chat.EMOptions.getImServer | ( | ) |
获取设置的im 服务器地址
EMChatConfigPrivate.EMMipushConfig com.hyphenate.chat.EMOptions.getMipushConfig | ( | ) |
获取用于小米推送的appid和appkey
EMPushConfig com.hyphenate.chat.EMOptions.getPushConfig | ( | ) |
获取用户设置的推送相关配置
String com.hyphenate.chat.EMOptions.getReportServer | ( | ) |
获取设置的数据上报服务器地址
boolean com.hyphenate.chat.EMOptions.getRequireAck | ( | ) |
获取已读确认设置,缺省值为true 如果设为true,会要求消息的接受方发送已读回执。
boolean com.hyphenate.chat.EMOptions.getRequireDeliveryAck | ( | ) |
获取送达确认设置,缺省值为false 如果设为true,会要求消息的接受方发送送达回执
String com.hyphenate.chat.EMOptions.getRestServer | ( | ) |
获取设置的rest 服务器地址
boolean com.hyphenate.chat.EMOptions.getUsingHttpsOnly | ( | ) |
获取是否只使用https进行REST操作,默认值是false
String com.hyphenate.chat.EMOptions.getVersion | ( | ) |
获取SDK版本号
boolean com.hyphenate.chat.EMOptions.isAutoAcceptGroupInvitation | ( | ) |
获取是否自动接受加群邀请
boolean com.hyphenate.chat.EMOptions.isChatroomOwnerLeaveAllowed | ( | ) |
获取是否允许聊天室owner离开
boolean com.hyphenate.chat.EMOptions.isDeleteMessagesAsExitChatRoom | ( | ) |
获取退出(主动和被动退出)聊天室时是否删除聊天消息
boolean com.hyphenate.chat.EMOptions.isDeleteMessagesAsExitGroup | ( | ) |
获取退出(主动和被动退出)群组时是否删除聊天消息
boolean com.hyphenate.chat.EMOptions.isEnableStatistics | ( | ) |
是否启动统计
boolean com.hyphenate.chat.EMOptions.isSortMessageByServerTime | ( | ) |
是否按照服务器收到时间进行排序,默认是false
boolean com.hyphenate.chat.EMOptions.isUseFCM | ( | ) |
获取是否使用谷歌FCM推送
void com.hyphenate.chat.EMOptions.setAcceptInvitationAlways | ( | boolean | value | ) |
设置是否自动接受加好友邀请
value | 是否自动接受加好友邀请 |
void com.hyphenate.chat.EMOptions.setAppKey | ( | String | appkey | ) |
设置appkey
appkey |
void com.hyphenate.chat.EMOptions.setAutoAcceptGroupInvitation | ( | boolean | value | ) |
设置是否自动接受加群邀请
value |
void com.hyphenate.chat.EMOptions.setAutoDownloadThumbnail | ( | boolean | autodownload | ) |
是否自动下载缩略图 默认是true,自动下载
autodownload | 布尔值,是否自动下载缩略图 |
void com.hyphenate.chat.EMOptions.setAutoLogin | ( | boolean | autoLogin | ) |
设置自动登录
autoLogin |
void com.hyphenate.chat.EMOptions.setAutoTransferMessageAttachments | ( | boolean | transfer | ) |
是否自动将消息附件上传到Chat服务器 默认为true,使用Chat服务器上传下载
transfer | 是否上传到Chat服务器 |
void com.hyphenate.chat.EMOptions.setDeleteMessagesAsExitChatRoom | ( | boolean | delete | ) |
设置退出(主动和被动退出)聊天室时是否删除聊天消息
delete | true为删除聊天室相关消息记录 |
void com.hyphenate.chat.EMOptions.setDeleteMessagesAsExitGroup | ( | boolean | delete | ) |
设置退出(主动和被动退出)群组时是否删除聊天消息
delete | True为删除群组相关消息,默认值为true |
void com.hyphenate.chat.EMOptions.setDnsUrl | ( | String | dnsUrl | ) |
设置dns地址
dnsUrl |
void com.hyphenate.chat.EMOptions.setEnableStatistics | ( | boolean | enableStatistics | ) |
设置是否启用统计
enableStatistics |
void com.hyphenate.chat.EMOptions.setFCMNumber | ( | String | number | ) |
void com.hyphenate.chat.EMOptions.setFixedHBInterval | ( | int | interval | ) |
设置固定的心跳间隔,不设置时会自动探测最佳心跳间隔
interval | 心跳时间间隔,单位为秒,建议范围为30s~300s之间 |
void com.hyphenate.chat.EMOptions.setImPort | ( | int | imPort | ) |
设置im 服务器端口号
imPort | 端口号 |
void com.hyphenate.chat.EMOptions.setIMServer | ( | String | imServer | ) |
设置im服务器地址
imServer |
void com.hyphenate.chat.EMOptions.setMipushConfig | ( | String | mipushAppid, |
String | mipushAppkey | ||
) |
设置用于小米推送的appid和appkey
mipushAppid | 小米推送的appid |
mipushAppkey | 小米推送的appkey |
void com.hyphenate.chat.EMOptions.setPushConfig | ( | EMPushConfig | pushConfig | ) |
设置推送相关配置
pushConfig | 推送相关配置 |
void com.hyphenate.chat.EMOptions.setReportServer | ( | String | reportServer | ) |
设置数据上报服务器地址
reportServer | 数据上报服务器地址 |
void com.hyphenate.chat.EMOptions.setRequireAck | ( | boolean | requireAck | ) |
设置是否需要接受方已读确认
requireAck | 是否需要已读回执 |
void com.hyphenate.chat.EMOptions.setRequireDeliveryAck | ( | boolean | requireDeliveryAck | ) |
设置是否需要接受方送达确认,默认false
requireDeliveryAck | 是否需要送达确认 |
void com.hyphenate.chat.EMOptions.setRestServer | ( | String | restServer | ) |
设置rest 服务器地址
restServer |
void com.hyphenate.chat.EMOptions.setSortMessageByServerTime | ( | boolean | sortByServerTime | ) |
设置是否按照服务器收到的时间对消息进行排序
sortByServerTime |
void com.hyphenate.chat.EMOptions.setUseFCM | ( | boolean | useFCM | ) |
void com.hyphenate.chat.EMOptions.setUseHttps | ( | boolean | _useHttps | ) |
void com.hyphenate.chat.EMOptions.setUsingHttpsOnly | ( | boolean | _usingHttpsOnly | ) |
只使用https进行REST操作
_usingHttpsOnly | 是否只使用https |