hyphenate_SDK3.0
3.8.5
hyphenatejavaIMSDK
|
Public Member Functions | |
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) |
Settings for chat of SDK You can set parameters and options of SDK Such as: send encrypted messages, whether automatically accept friend invitations
void com.hyphenate.chat.EMOptions.allowChatroomOwnerLeave | ( | boolean | allowed | ) |
Enable/disable allowing chat room owner to leave the chat room
allowed | Whether to allow the owner of chat room to leave |
void com.hyphenate.chat.EMOptions.enableDNSConfig | ( | boolean | enable | ) |
Enable/disable DNS Default is ture, private cloud deployment needs to be turned off
boolean com.hyphenate.chat.EMOptions.getAcceptInvitationAlways | ( | ) |
Get if accept the other's invitation to be your friend automatically, default is true
String com.hyphenate.chat.EMOptions.getAccessToken | ( | ) |
Get access token from local
String com.hyphenate.chat.EMOptions.getAccessToken | ( | boolean | b | ) |
Whether to get access token from server
b | Whether to get from server |
String com.hyphenate.chat.EMOptions.getAppKey | ( | ) |
Get app key
boolean com.hyphenate.chat.EMOptions.getAutodownloadThumbnail | ( | ) |
Get whether to download thumbnail automatically, default value is true
boolean com.hyphenate.chat.EMOptions.getAutoLogin | ( | ) |
Get whether to login automatically
boolean com.hyphenate.chat.EMOptions.getAutoTransferMessageAttachments | ( | ) |
Whether to Use chat sever to upload and download, default value is true
String com.hyphenate.chat.EMOptions.getDnsUrl | ( | ) |
Get dns url
boolean com.hyphenate.chat.EMOptions.getEnableDNSConfig | ( | ) |
Get whether disable DNS, default is true
String com.hyphenate.chat.EMOptions.getFCMNumber | ( | ) |
Get FCM sender id
int com.hyphenate.chat.EMOptions.getFixedInterval | ( | ) |
Get fixed heart beat interval
int com.hyphenate.chat.EMOptions.getImPort | ( | ) |
Get the im server port
String com.hyphenate.chat.EMOptions.getImServer | ( | ) |
Get the im server
EMChatConfigPrivate.EMMipushConfig com.hyphenate.chat.EMOptions.getMipushConfig | ( | ) |
Get the appid and appkey for Xiaomi Push
EMPushConfig com.hyphenate.chat.EMOptions.getPushConfig | ( | ) |
Get the push config set by user
String com.hyphenate.chat.EMOptions.getReportServer | ( | ) |
Get the report server
boolean com.hyphenate.chat.EMOptions.getRequireAck | ( | ) |
Get whether read ack is required for the message receiver, default is true If set to true, need message receiver to send read ack
boolean com.hyphenate.chat.EMOptions.getRequireDeliveryAck | ( | ) |
Get whether delivery ack is required If set to true, need message receiver to send delivery ack
String com.hyphenate.chat.EMOptions.getRestServer | ( | ) |
Get the rest server
boolean com.hyphenate.chat.EMOptions.getUsingHttpsOnly | ( | ) |
Only use https for rest operation, default value is false
String com.hyphenate.chat.EMOptions.getVersion | ( | ) |
Get SDK version
boolean com.hyphenate.chat.EMOptions.isAutoAcceptGroupInvitation | ( | ) |
Get whether to accept group invitation automatically
boolean com.hyphenate.chat.EMOptions.isChatroomOwnerLeaveAllowed | ( | ) |
Get whether to allow owner of chat room to leave
boolean com.hyphenate.chat.EMOptions.isDeleteMessagesAsExitChatRoom | ( | ) |
Get whether to delete the chat room message after existing the chat room
boolean com.hyphenate.chat.EMOptions.isDeleteMessagesAsExitGroup | ( | ) |
Get whether to delete the group message after existing a group
boolean com.hyphenate.chat.EMOptions.isEnableStatistics | ( | ) |
Whether to enable statistics
boolean com.hyphenate.chat.EMOptions.isSortMessageByServerTime | ( | ) |
Get Whether sort messages by server received time, default is false
boolean com.hyphenate.chat.EMOptions.isUseFCM | ( | ) |
Whether to use Google FCM push
void com.hyphenate.chat.EMOptions.setAcceptInvitationAlways | ( | boolean | value | ) |
enable/disable accept the friend invitation automatically
value | Whether accept invitation automatically |
void com.hyphenate.chat.EMOptions.setAppKey | ( | String | appkey | ) |
Set app key
appkey |
void com.hyphenate.chat.EMOptions.setAutoAcceptGroupInvitation | ( | boolean | value | ) |
Set whether to accept group invitation automatically
value |
void com.hyphenate.chat.EMOptions.setAutoDownloadThumbnail | ( | boolean | autodownload | ) |
Set Whether auto download thumbnail Default value is true, download automatically
autodownload | Boolean, whether to download thumbnail automatically |
void com.hyphenate.chat.EMOptions.setAutoLogin | ( | boolean | autoLogin | ) |
Set login automatically
autoLogin |
void com.hyphenate.chat.EMOptions.setAutoTransferMessageAttachments | ( | boolean | transfer | ) |
Whether the message attachment is automatically uploaded to the chat server, default value is true, the default way to upload and download by chat server
transfer | Whether to upload to chat server |
void com.hyphenate.chat.EMOptions.setDeleteMessagesAsExitChatRoom | ( | boolean | delete | ) |
Enable/disable deleting the chat room message after existing the chat room
delete | True means to delete the chat room related message record |
void com.hyphenate.chat.EMOptions.setDeleteMessagesAsExitGroup | ( | boolean | delete | ) |
Enable/disable deleting the group message after existing the group
delete | If set to True, delete the messages, default is true |
void com.hyphenate.chat.EMOptions.setDnsUrl | ( | String | dnsUrl | ) |
Set dns url
dnsUrl |
void com.hyphenate.chat.EMOptions.setEnableStatistics | ( | boolean | enableStatistics | ) |
Set whether to enable statistics
void com.hyphenate.chat.EMOptions.setFCMNumber | ( | String | number | ) |
Set FCM sender id
number | FCM sender id |
void com.hyphenate.chat.EMOptions.setFixedHBInterval | ( | int | interval | ) |
Set fixed heart beat interval, when not set, the optimal heartbeat interval is automatically detected
interval | interval of heart beat, in seconds (30~300) |
void com.hyphenate.chat.EMOptions.setImPort | ( | int | imPort | ) |
Set the custom im server port
imPort | port |
void com.hyphenate.chat.EMOptions.setIMServer | ( | String | imServer | ) |
Set the custom im server
imServer |
void com.hyphenate.chat.EMOptions.setMipushConfig | ( | String | mipushAppid, |
String | mipushAppkey | ||
) |
set the appid and appkey for Xiaomi Push
mipushAppid | Xiaomi Push appid |
mipushAppkey | Xiaomi push appkey |
void com.hyphenate.chat.EMOptions.setPushConfig | ( | EMPushConfig | pushConfig | ) |
Set push config
pushConfig | push config |
void com.hyphenate.chat.EMOptions.setReportServer | ( | String | reportServer | ) |
Set the custom report server
reportServer | Report server url |
void com.hyphenate.chat.EMOptions.setRequireAck | ( | boolean | requireAck | ) |
Enable/disable the read ack of receipt
requireAck | Whether read ack is required |
void com.hyphenate.chat.EMOptions.setRequireDeliveryAck | ( | boolean | requireDeliveryAck | ) |
Enable/disable deliver ack
requireDeliveryAck | Whether delivery ack is required |
void com.hyphenate.chat.EMOptions.setRestServer | ( | String | restServer | ) |
Set the custom rest server
restServer |
void com.hyphenate.chat.EMOptions.setSortMessageByServerTime | ( | boolean | sortByServerTime | ) |
Enable/disable setting to sort messages by server received time
sortByServerTime |
void com.hyphenate.chat.EMOptions.setUseFCM | ( | boolean | useFCM | ) |
Enable or disable Google FCM push
useFCM | Google FCM push switch |
void com.hyphenate.chat.EMOptions.setUseHttps | ( | boolean | _useHttps | ) |
Allow use https for rest operation, default is true
_useHttps | enable/disable https |
void com.hyphenate.chat.EMOptions.setUsingHttpsOnly | ( | boolean | _usingHttpsOnly | ) |
Only use https for rest operation
_usingHttpsOnly | If only use https |