|
agora_chat_SDK
3.8.2
agorajavachatSDK
|
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 () |
| PushConfig | getPushConfig () |
| void | setPushConfig (PushConfig 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 io.agora.chat.ChatOptions.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 io.agora.chat.ChatOptions.enableDNSConfig | ( | boolean | enable | ) |
Enable/disable DNS Default is ture, private cloud deployment needs to be turned off
| boolean io.agora.chat.ChatOptions.getAcceptInvitationAlways | ( | ) |
Get if accept the other's invitation to be your friend automatically, default is true
| String io.agora.chat.ChatOptions.getAccessToken | ( | ) |
Get access token from local
| String io.agora.chat.ChatOptions.getAccessToken | ( | boolean | b | ) |
Whether to get access token from server
| b | Whether to get from server |
| String io.agora.chat.ChatOptions.getAppKey | ( | ) |
Get app key
| boolean io.agora.chat.ChatOptions.getAutodownloadThumbnail | ( | ) |
Get whether to download thumbnail automatically, default value is true
| boolean io.agora.chat.ChatOptions.getAutoLogin | ( | ) |
Get whether to login automatically
| boolean io.agora.chat.ChatOptions.getAutoTransferMessageAttachments | ( | ) |
Whether to Use chat sever to upload and download, default value is true
| String io.agora.chat.ChatOptions.getDnsUrl | ( | ) |
Get dns url
| boolean io.agora.chat.ChatOptions.getEnableDNSConfig | ( | ) |
Get whether disable DNS, default is true
| String io.agora.chat.ChatOptions.getFCMNumber | ( | ) |
Get FCM sender id
| int io.agora.chat.ChatOptions.getFixedInterval | ( | ) |
Get fixed heart beat interval
| int io.agora.chat.ChatOptions.getImPort | ( | ) |
Get the im server port
| String io.agora.chat.ChatOptions.getImServer | ( | ) |
Get the im server
| EMChatConfigPrivate.EMMipushConfig io.agora.chat.ChatOptions.getMipushConfig | ( | ) |
Get the appid and appkey for Xiaomi Push
| PushConfig io.agora.chat.ChatOptions.getPushConfig | ( | ) |
Get the push config set by user
| String io.agora.chat.ChatOptions.getReportServer | ( | ) |
Get the report server
| boolean io.agora.chat.ChatOptions.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 io.agora.chat.ChatOptions.getRequireDeliveryAck | ( | ) |
Get whether delivery ack is required If set to true, need message receiver to send delivery ack
| String io.agora.chat.ChatOptions.getRestServer | ( | ) |
Get the rest server
| boolean io.agora.chat.ChatOptions.getUsingHttpsOnly | ( | ) |
Only use https for rest operation, default value is false
| String io.agora.chat.ChatOptions.getVersion | ( | ) |
Get SDK version
| boolean io.agora.chat.ChatOptions.isAutoAcceptGroupInvitation | ( | ) |
Get whether to accept group invitation automatically
| boolean io.agora.chat.ChatOptions.isChatroomOwnerLeaveAllowed | ( | ) |
Get whether to allow owner of chat room to leave
| boolean io.agora.chat.ChatOptions.isDeleteMessagesAsExitChatRoom | ( | ) |
Get whether to delete the chat room message after existing the chat room
| boolean io.agora.chat.ChatOptions.isDeleteMessagesAsExitGroup | ( | ) |
Get whether to delete the group message after existing a group
| boolean io.agora.chat.ChatOptions.isEnableStatistics | ( | ) |
Whether to enable statistics
| boolean io.agora.chat.ChatOptions.isSortMessageByServerTime | ( | ) |
Get Whether sort messages by server received time, default is false
| boolean io.agora.chat.ChatOptions.isUseFCM | ( | ) |
Whether to use Google FCM push
| void io.agora.chat.ChatOptions.setAcceptInvitationAlways | ( | boolean | value | ) |
enable/disable accept the friend invitation automatically
| value | Whether accept invitation automatically |
| void io.agora.chat.ChatOptions.setAppKey | ( | String | appkey | ) |
Set app key
| appkey |
| void io.agora.chat.ChatOptions.setAutoAcceptGroupInvitation | ( | boolean | value | ) |
Set whether to accept group invitation automatically
| value |
| void io.agora.chat.ChatOptions.setAutoDownloadThumbnail | ( | boolean | autodownload | ) |
Set Whether auto download thumbnail Default value is true, download automatically
| autodownload | Boolean, whether to download thumbnail automatically |
| void io.agora.chat.ChatOptions.setAutoLogin | ( | boolean | autoLogin | ) |
Set login automatically
| autoLogin |
| void io.agora.chat.ChatOptions.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 io.agora.chat.ChatOptions.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 io.agora.chat.ChatOptions.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 io.agora.chat.ChatOptions.setDnsUrl | ( | String | dnsUrl | ) |
Set dns url
| dnsUrl |
| void io.agora.chat.ChatOptions.setEnableStatistics | ( | boolean | enableStatistics | ) |
Set whether to enable statistics
| void io.agora.chat.ChatOptions.setFCMNumber | ( | String | number | ) |
Set FCM sender id
| number | FCM sender id |
| void io.agora.chat.ChatOptions.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 io.agora.chat.ChatOptions.setImPort | ( | int | imPort | ) |
Set the custom im server port
| imPort | port |
| void io.agora.chat.ChatOptions.setIMServer | ( | String | imServer | ) |
Set the custom im server
| imServer |
| void io.agora.chat.ChatOptions.setMipushConfig | ( | String | mipushAppid, |
| String | mipushAppkey | ||
| ) |
set the appid and appkey for Xiaomi Push
| mipushAppid | Xiaomi Push appid |
| mipushAppkey | Xiaomi push appkey |
| void io.agora.chat.ChatOptions.setPushConfig | ( | PushConfig | pushConfig | ) |
Set push config
| pushConfig | push config |
| void io.agora.chat.ChatOptions.setReportServer | ( | String | reportServer | ) |
Set the custom report server
| reportServer | Report server url |
| void io.agora.chat.ChatOptions.setRequireAck | ( | boolean | requireAck | ) |
Enable/disable the read ack of receipt
| requireAck | Whether read ack is required |
| void io.agora.chat.ChatOptions.setRequireDeliveryAck | ( | boolean | requireDeliveryAck | ) |
Enable/disable deliver ack
| requireDeliveryAck | Whether delivery ack is required |
| void io.agora.chat.ChatOptions.setRestServer | ( | String | restServer | ) |
Set the custom rest server
| restServer |
| void io.agora.chat.ChatOptions.setSortMessageByServerTime | ( | boolean | sortByServerTime | ) |
Enable/disable setting to sort messages by server received time
| sortByServerTime |
| void io.agora.chat.ChatOptions.setUseFCM | ( | boolean | useFCM | ) |
Enable or disable Google FCM push
| useFCM | Google FCM push switch |
| void io.agora.chat.ChatOptions.setUseHttps | ( | boolean | _useHttps | ) |
Allow use https for rest operation, default is true
| _useHttps | enable/disable https |
| void io.agora.chat.ChatOptions.setUsingHttpsOnly | ( | boolean | _usingHttpsOnly | ) |
Only use https for rest operation
| _usingHttpsOnly | If only use https |
1.8.9