hyphenate_SDK3.0
3.8.1
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) |
void | setImPort (int imPort) |
void | setRestServer (String restServer) |
String | getReportServer () |
void | setReportServer (String reportServer) |
String | getRestServer () |
String | getImServer () |
int | getImPort () |
String | getRtcServer () |
void | setRtcServer (String rtcServer) |
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 () |
boolean | isUseStereoInput () |
void | setUseStereoInput (boolean useStereoInput) |
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) |
void | setUseRtcConfig (boolean useRtcConfig) |
boolean | getUseRtcConfig () |
void | setRtcConfigUrl (String rtcConfigUrl) |
String | getRtcConfigUrl () |
EMChatOptions 提供环信sdk聊天相关的设置。用户可以用来配置SDK的各种参数,选项 比如,发送消息加密,受到消息是否播放提示音
void com.hyphenate.chat.EMOptions.allowChatroomOwnerLeave | ( | boolean | allowed | ) |
设置是否允许聊天室owner离开并删除会话记录,意味着owner再不会受到任何消息
allowed | 是否允许聊天室owner离开 |
boolean com.hyphenate.chat.EMOptions.getAcceptInvitationAlways | ( | ) |
获取是否自动接受加好友邀请。缺省true
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 | ( | ) |
获取是否使用环信服务器进行上传下载,默认值是true。
String com.hyphenate.chat.EMOptions.getFCMNumber | ( | ) |
获取FCM(GCM升级版->FCM)推送id
int com.hyphenate.chat.EMOptions.getImPort | ( | ) |
获取设置的im server端口号
String com.hyphenate.chat.EMOptions.getImServer | ( | ) |
获取设置的im server
EMChatConfigPrivate.EMMipushConfig com.hyphenate.chat.EMOptions.getMipushConfig | ( | ) |
获取用于小米推送的appid和appkey
String com.hyphenate.chat.EMOptions.getReportServer | ( | ) |
获取设置的report server
boolean com.hyphenate.chat.EMOptions.getRequireAck | ( | ) |
获取已读确认设置,缺省 true 如果设为true,会要求消息的接受方发送已读回执。 UI 可以通过注册 下面的intent receiver 接收此回执
boolean com.hyphenate.chat.EMOptions.getRequireDeliveryAck | ( | ) |
获取送达确认设置,缺省 false, 如果设为true,会要求消息的接受方发送送达回执。 UI 可以通过注册 下面的intent receiver 接收此回执
IntentFilter readAckIntentFilter = new IntentFilter(EMChatManager.getInstance().getAckMessageBroadcastAction());
String com.hyphenate.chat.EMOptions.getRestServer | ( | ) |
获取设置的rest server
boolean com.hyphenate.chat.EMOptions.getUsingHttpsOnly | ( | ) |
只使用https进行REST操作,默认值是false。
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.isSortMessageByServerTime | ( | ) |
是否按照server收到时间进行排序 默认是false
boolean com.hyphenate.chat.EMOptions.isUseFCM | ( | ) |
是否使用谷歌FCM推送
boolean com.hyphenate.chat.EMOptions.isUseStereoInput | ( | ) |
设置是否使用双声道录制, 需要在初始化设置
useStereoInput |
void com.hyphenate.chat.EMOptions.setAcceptInvitationAlways | ( | boolean | value | ) |
设置是否自动接受加好友邀请。缺省true
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 | ) |
是否自动将消息附件上传到环信服务器,默认为True是使用环信服务器上传下载。
transfer |
void com.hyphenate.chat.EMOptions.setDeleteMessagesAsExitChatRoom | ( | boolean | delete | ) |
设置退出(主动和被动退出)聊天室时是否删除聊天消息
delete | true为删除聊天室相关消息,默认为true |
void com.hyphenate.chat.EMOptions.setDeleteMessagesAsExitGroup | ( | boolean | delete | ) |
设置退出(主动和被动退出)群组时是否删除聊天消息
delete | true为删除群组相关消息,默认为true |
void com.hyphenate.chat.EMOptions.setFCMNumber | ( | String | number | ) |
设置FCM(GCM升级版->FCM)推送id
number | FCM sender id |
void com.hyphenate.chat.EMOptions.setImPort | ( | int | imPort | ) |
设置im server 端口号,默认443
imPort |
void com.hyphenate.chat.EMOptions.setIMServer | ( | String | imServer | ) |
设置im server地址
imServer |
void com.hyphenate.chat.EMOptions.setMipushConfig | ( | String | mipushAppid, |
String | mipushAppkey | ||
) |
设置用于小米推送的appid和appkey
mipushAppid | |
mipushAppkey |
void com.hyphenate.chat.EMOptions.setReportServer | ( | String | reportServer | ) |
设置report server地址
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 server地址
restServer |
void com.hyphenate.chat.EMOptions.setRtcConfigUrl | ( | String | rtcConfigUrl | ) |
设置音视频多集群部署rtcConfigUrl
rtcConfigUrl |
void com.hyphenate.chat.EMOptions.setRtcServer | ( | String | rtcServer | ) |
设置音视频 server地址
rtcServer |
void com.hyphenate.chat.EMOptions.setUseFCM | ( | boolean | useFCM | ) |
设置是否开启谷歌FCM推送
useFCM | 谷歌FCM推送开关 |
void com.hyphenate.chat.EMOptions.setUseHttps | ( | boolean | _useHttps | ) |
_useHttps |
void com.hyphenate.chat.EMOptions.setUseRtcConfig | ( | boolean | useRtcConfig | ) |
设置是否启用音视频多集群部署
useRtcConfig |
void com.hyphenate.chat.EMOptions.setUsingHttpsOnly | ( | boolean | _usingHttpsOnly | ) |
只使用https进行REST操作,默认值是false。
_usingHttpsOnly |