hyphenate_SDK3.0  3.6.2
hyphenatejavaIMSDK
Public Member Functions | List of all members
com.hyphenate.chat.EMOptions Class Reference

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 ()
 
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)
 

Detailed Description

chat options for IM enable/disable delivery ack, enable/disable server ack, enable/disable hyphenate friend management, etc..

Member Function Documentation

void com.hyphenate.chat.EMOptions.allowChatroomOwnerLeave ( boolean  allowed)

enable/disable allowing chat room owner to leave the chat room

Parameters
allowedif 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

Returns
if accept invitation 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

Returns
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

Returns
String com.hyphenate.chat.EMOptions.getImServer ( )

get the im server

Returns
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.

Returns
whether read ack is required
boolean com.hyphenate.chat.EMOptions.getRequireDeliveryAck ( )

get if delivery ack is required

Returns
if delivery ack is required
String com.hyphenate.chat.EMOptions.getRestServer ( )

get the rest server

Returns
boolean com.hyphenate.chat.EMOptions.getUsingHttpsOnly ( )

Only use https for rest operation, default value is false

Returns
boolean com.hyphenate.chat.EMOptions.isAutoAcceptGroupInvitation ( )

get if accept group invitation automatically

Returns
boolean com.hyphenate.chat.EMOptions.isChatroomOwnerLeaveAllowed ( )

if allow owner of chat room leave

Returns
true–do not keep conversation when leave
boolean com.hyphenate.chat.EMOptions.isDeleteMessagesAsExitGroup ( )

get if deleting the group message after existing the group

Returns
true–delete the messages
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

boolean com.hyphenate.chat.EMOptions.isUseStereoInput ( )

Set if use stereo input, should be set before init().

Parameters
useStereoInput
void com.hyphenate.chat.EMOptions.setAcceptInvitationAlways ( boolean  value)

enable/disable accept the friend invitation automatically

Parameters
value
void com.hyphenate.chat.EMOptions.setAppKey ( String  appkey)

set app key

Parameters
appkey
void com.hyphenate.chat.EMOptions.setAutoAcceptGroupInvitation ( boolean  value)

set if accept group invitation automatically

Parameters
value
void com.hyphenate.chat.EMOptions.setAutoDownloadThumbnail ( boolean  autodownload)

Set Whether auto download thumbnail, default value is true.

Parameters
autodownload
void com.hyphenate.chat.EMOptions.setAutoLogin ( boolean  autoLogin)

set login automatically

Parameters
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.

Parameters
transfer
void com.hyphenate.chat.EMOptions.setDeleteMessagesAsExitGroup ( boolean  delete)

enable/disable deleting the group message after existing the group

Parameters
deletetrue–delete the messages, default is true
void com.hyphenate.chat.EMOptions.setFCMNumber ( String  number)

set FCM sender id

Parameters
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

Parameters
imPort
void com.hyphenate.chat.EMOptions.setIMServer ( String  imServer)

set the custom im server

Parameters
imServer
void com.hyphenate.chat.EMOptions.setMipushConfig ( String  mipushAppid,
String  mipushAppkey 
)

set the appid and appkey for Xiaomi Push

Parameters
mipushAppid
mipushAppkeyUse EMPushConfig.Builder#enableMiPush(String, String) for instead.
void com.hyphenate.chat.EMOptions.setRequireAck ( boolean  requireAck)

enable/disable the read ack of receipt

Parameters
requireAck
void com.hyphenate.chat.EMOptions.setRequireDeliveryAck ( boolean  requireDeliveryAck)

enable/disable deliver ack

Parameters
requireDeliveryAck
void com.hyphenate.chat.EMOptions.setRestServer ( String  restServer)

set the custom rest server

Parameters
restServer
void com.hyphenate.chat.EMOptions.setUseFCM ( boolean  useFCM)

Enable or disable Google FCM push

Parameters
useFCM– Google FCM push switch
void com.hyphenate.chat.EMOptions.setUseHttps ( boolean  _useHttps)
Deprecated:
allow use https for rest operation, default value is true
void com.hyphenate.chat.EMOptions.setUsingHttpsOnly ( boolean  _usingHttpsOnly)

Only use https for rest operation, default value is false

Parameters
_usingHttpsOnly

The documentation for this class was generated from the following file: