hyphenate_SDK3.0
3.5.6
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 () |
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 | getRestServer () |
String | getImServer () |
int | getImPort () |
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 () |
String | getVersion () |
String | getAccessToken () |
String | getAccessToken (boolean b) |
void | setDnsUrl (String dnsUrl) |
String | getDnsUrl () |
EMPushConfig | getPushConfig () |
void | setPushConfig (EMPushConfig pushConfig) |
chat options for IM enable/disable delivery ack, enable/disable server ack, enable/disable hyphenate friend management, etc..
void com.hyphenate.chat.EMOptions.allowChatroomOwnerLeave | ( | boolean | allowed | ) |
enable/disable allowing chat room owner to leave the chat room
allowed | if allow the owner of chat room leave |
boolean com.hyphenate.chat.EMOptions.getAcceptInvitationAlways | ( | ) |
get if accept the other's invitation to be your friend automatically
String com.hyphenate.chat.EMOptions.getAppKey | ( | ) |
get app key
boolean com.hyphenate.chat.EMOptions.getAutodownloadThumbnail | ( | ) |
is Auto download thumbnail, default value is true.
boolean com.hyphenate.chat.EMOptions.getAutoLogin | ( | ) |
get login automatically
boolean com.hyphenate.chat.EMOptions.getAutoTransferMessageAttachments | ( | ) |
Use Easemob sever to upload and download, default value is true.
String com.hyphenate.chat.EMOptions.getFCMNumber | ( | ) |
get FCM sender id
Use EMPushConfig#getFcmSenderId() for instead.
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
Use EMPushConfig#getMiAppId() and EMPushConfig#getMiAppKey() for instead.
boolean com.hyphenate.chat.EMOptions.getRequireAck | ( | ) |
get whether read ack is required for the message receiver.
boolean com.hyphenate.chat.EMOptions.getRequireDeliveryAck | ( | ) |
get if delivery ack is required
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
boolean com.hyphenate.chat.EMOptions.isAutoAcceptGroupInvitation | ( | ) |
get if accept group invitation automatically
boolean com.hyphenate.chat.EMOptions.isChatroomOwnerLeaveAllowed | ( | ) |
if allow owner of chat room leave
boolean com.hyphenate.chat.EMOptions.isDeleteMessagesAsExitGroup | ( | ) |
get if deleting the group message after existing the group
boolean com.hyphenate.chat.EMOptions.isSortMessageByServerTime | ( | ) |
whether sort messages by server received time, default value 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 |
void com.hyphenate.chat.EMOptions.setAppKey | ( | String | appkey | ) |
set app key
appkey |
void com.hyphenate.chat.EMOptions.setAutoAcceptGroupInvitation | ( | boolean | value | ) |
set if accept group invitation automatically
value |
void com.hyphenate.chat.EMOptions.setAutoDownloadThumbnail | ( | boolean | autodownload | ) |
Set Whether auto download thumbnail, default value is true.
autodownload |
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 Hyphenate server, default value is true, the default way to upload and download by Easemob.
transfer |
void com.hyphenate.chat.EMOptions.setDeleteMessagesAsExitGroup | ( | boolean | delete | ) |
enable/disable deleting the group message after existing the group
delete | true–delete the messages, default is true |
void com.hyphenate.chat.EMOptions.setFCMNumber | ( | String | number | ) |
set FCM sender id
number | – FCM sender id |
Use EMPushConfig.Builder#enableFCM(String) for instead.
void com.hyphenate.chat.EMOptions.setImPort | ( | int | imPort | ) |
set the custom im server port, default is 443
imPort |
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 | |
mipushAppkey | Use EMPushConfig.Builder#enableMiPush(String, String) for instead. |
void com.hyphenate.chat.EMOptions.setRequireAck | ( | boolean | requireAck | ) |
enable/disable the read ack of receipt
requireAck |
void com.hyphenate.chat.EMOptions.setRequireDeliveryAck | ( | boolean | requireDeliveryAck | ) |
enable/disable deliver ack
requireDeliveryAck |
void com.hyphenate.chat.EMOptions.setRestServer | ( | String | restServer | ) |
set the custom rest server
restServer |
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 | ) |
void com.hyphenate.chat.EMOptions.setUsingHttpsOnly | ( | boolean | _usingHttpsOnly | ) |
Only use https for rest operation, default value is false
_usingHttpsOnly |