11#define WIN32_LEAN_AND_MEAN
13#define AGORA_CALL __cdecl
14#if defined(AGORARTC_EXPORT)
15#define AGORA_API extern "C" __declspec(dllexport)
17#define AGORA_API extern "C" __declspec(dllimport)
21#elif defined(__APPLE__)
22#define AGORA_API __attribute__((visibility("default"))) extern "C"
26#elif defined(__ANDROID__) || defined(__linux__)
27#if defined(__ANDROID__) && defined(FEATURE_RTM_STANDALONE_SDK)
28#define AGORA_API extern "C"
31#define AGORA_API extern "C" __attribute__((visibility("default")))
32#define _AGORA_CPP_API __attribute__((visibility("default")))
37#define AGORA_API extern "C"
46#define AGORA_RTM_ENDCALL_PREFIX "AgoraRTMLegacyEndcallCompatibleMessagePrefix"
1570 (
const char *) userId;
1607 (
long long) messageId;
1665 (int) numberOfAttributes;
1817 (
const char*) token;
1860 (
long long) messageId;
1918 (
long long) requestId;
1936 (
long long) requestId;
1949 (
long long) requestId;
1963 (
long long) requestId;
1976 (
long long)requestId;
1992 (
long long) requestId;
1993 (
const char*) memory;
2006 (
long long) requestId;
2020 (
long long) requestId;
2034 (
long long)requestId;
2048 (
const char**)peerIds;
2077 (
long long) requestId;
2089 (
long long) requestId;
2101 (
long long) requestId;
2113 (
long long) requestId;
2128 (
long long) requestId;
2130 (int) numberOfAttributes;
2142 (
long long) requestId;
2154 (
long long) requestId;
2166 (
long long) requestId;
2178 (
long long) requestId;
2208 (
long long) requestId;
2215 class IRtmCallManager;
2216 class IRtmCallEventHandler;
2321 virtual int login(
const char *token,
const char *userId) = 0;
3009#ifndef AGORA_SDK_BOTH_RTM_AND_RTC
Callbacks for the Agora RTM channel methods.
Definition: IAgoraRtmService.h:1522
virtual void onJoinSuccess()
Definition: IAgoraRtmService.h:1536
virtual void onFileMessageReceived(const char *userId, const IFileMessage *message)
Definition: IAgoraRtmService.h:1594
virtual void onSendMessageResult(long long messageId, CHANNEL_MESSAGE_ERR_CODE state)
Definition: IAgoraRtmService.h:1605
virtual void onMemberJoined(IChannelMember *member)
Definition: IAgoraRtmService.h:1620
virtual void onGetMembers(IChannelMember **members, int userCount, GET_MEMBERS_ERR errorCode)
Definition: IAgoraRtmService.h:1648
virtual void onImageMessageReceived(const char *userId, const IImageMessage *message)
Definition: IAgoraRtmService.h:1581
virtual void onAttributesUpdated(const IRtmChannelAttribute *attributes[], int numberOfAttributes)
Definition: IAgoraRtmService.h:1662
virtual void onMessageReceived(const char *userId, const IMessage *message)
Definition: IAgoraRtmService.h:1568
virtual ~IChannelEventHandler()
Definition: IAgoraRtmService.h:1525
virtual void onLeave(LEAVE_CHANNEL_ERR errorCode)
Definition: IAgoraRtmService.h:1557
virtual void onMemberLeft(IChannelMember *member)
Definition: IAgoraRtmService.h:1634
virtual void onJoinFailure(JOIN_CHANNEL_ERR errorCode)
Definition: IAgoraRtmService.h:1547
virtual void onMemberCountUpdated(int memberCount)
Definition: IAgoraRtmService.h:1678
Agora RTM channel methods.
Definition: IAgoraRtmService.h:1688
virtual int sendMessage(const IMessage *message, const SendMessageOptions &options)=0
virtual ~IChannel()
Definition: IAgoraRtmService.h:1690
virtual int getMembers()=0
virtual int sendMessage(const IMessage *message)=0
virtual const char * getId() const =0
The class for retrieving the attributes of a channel member.
Definition: IAgoraRtmService.h:1444
virtual ~IChannelMember()
Definition: IAgoraRtmService.h:1446
virtual const char * getChannelId() const =0
virtual const char * getUserId() const =0
The class for setting and retrieving attributes of a file message.
Definition: IAgoraRtmService.h:1245
virtual const char * getThumbnailData() const =0
virtual long long getSize() const =0
virtual void setFileName(const char *fileName)=0
virtual const long long getThumbnailLength() const =0
virtual const char * getFileName() const =0
virtual void setThumbnail(const uint8_t *thumbnail, int length)=0
virtual const char * getMediaId() const =0
The class for setting and retrieving attributes of an image message.
Definition: IAgoraRtmService.h:1307
virtual int getHeight() const =0
virtual int getThumbnailWidth() const =0
virtual const long long getThumbnailLength() const =0
virtual void setFileName(const char *fileName)=0
virtual void setThumbnailWidth(int width)=0
virtual void setThumbnailHeight(int height)=0
virtual const char * getFileName() const =0
virtual void setWidth(int width)=0
virtual const char * getThumbnailData() const =0
virtual long long getSize() const =0
virtual int getThumbnailHeight() const =0
virtual int getWidth() const =0
virtual void setThumbnail(const uint8_t *thumbnail, long long length)=0
virtual void setHeight(int height)=0
virtual const char * getMediaId() const =0
The class for setting and retrieving attributes of a channel or peer-to-peer message.
Definition: IAgoraRtmService.h:1162
virtual const char * getRawMessageData() const =0
virtual bool isOfflineMessage() const =0
virtual ~IMessage()
Definition: IAgoraRtmService.h:1164
virtual long long getMessageId() const =0
virtual void setText(const char *str)=0
virtual const char * getText() const =0
virtual MESSAGE_TYPE getMessageType() const =0
virtual int getRawMessageLength() const =0
virtual long long getServerReceivedTs() const =0
Definition: IAgoraRtmCallManager.h:312
Definition: IAgoraRtmCallManager.h:430
The class for setting or getting attributes of a channel.
Definition: IAgoraRtmService.h:1088
virtual const char * getValue() const =0
virtual void setKey(const char *key)=0
virtual ~IRtmChannelAttribute()
Definition: IAgoraRtmService.h:1090
virtual long long getLastUpdateTs() const =0
virtual const char * getLastUpdateUserId() const =0
virtual const char * getKey() const =0
virtual void setValue(const char *value)=0
Definition: IAgoraRtmService.h:1786
virtual void onDeleteChannelAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2164
virtual void onMediaDownloadToFileResult(long long requestId, DOWNLOAD_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:1974
virtual void onClearChannelAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2176
virtual void onPeersOnlineStatusChanged(const PeerOnlineStatus peersStatus[], int peerCount)
Definition: IAgoraRtmService.h:2063
virtual void onAddOrUpdateChannelAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2152
virtual void onImageMessageReceivedFromPeer(const char *peerId, const IImageMessage *message)
Definition: IAgoraRtmService.h:1884
virtual void onDeleteLocalUserAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2099
virtual void onLoginFailure(LOGIN_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:1804
virtual void onFileMessageReceivedFromPeer(const char *peerId, const IFileMessage *message)
Definition: IAgoraRtmService.h:1898
virtual void onSendMessageResult(long long messageId, PEER_MESSAGE_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:1858
virtual void onMediaUploadingProgress(long long requestId, const MediaOperationProgress &progress)
Definition: IAgoraRtmService.h:1916
virtual void onLogout(LOGOUT_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:1836
virtual void onMediaCancelResult(long long requestId, CANCEL_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:2004
virtual void onGetUserAttributesResult(long long requestId, const char *userId, const RtmAttribute *attributes, int numberOfAttributes, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2126
virtual void onTokenExpired()
Definition: IAgoraRtmService.h:1827
virtual void onQueryPeersOnlineStatusResult(long long requestId, const PeerOnlineStatus *peersStatus, int peerCount, QUERY_PEERS_ONLINE_STATUS_ERR errorCode)
Definition: IAgoraRtmService.h:2018
virtual void onSetChannelAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2140
virtual void onGetChannelMemberCountResult(long long requestId, const ChannelMemberCount *channelMemberCounts, int channelCount, GET_CHANNEL_MEMBER_COUNT_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:2206
virtual void onLoginSuccess()
Definition: IAgoraRtmService.h:1797
virtual ~IRtmServiceEventHandler()
Definition: IAgoraRtmService.h:1788
virtual void onClearLocalUserAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2111
virtual void onRenewTokenResult(const char *token, RENEW_TOKEN_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:1815
virtual void onMediaDownloadingProgress(long long requestId, const MediaOperationProgress &progress)
Definition: IAgoraRtmService.h:1934
virtual void onConnectionStateChanged(CONNECTION_STATE state, CONNECTION_CHANGE_REASON reason)
Definition: IAgoraRtmService.h:1847
virtual void onFileMediaUploadResult(long long requestId, IFileMessage *fileMessage, UPLOAD_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:1947
virtual void onAddOrUpdateLocalUserAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2087
virtual void onGetChannelAttributesResult(long long requestId, const IRtmChannelAttribute *attributes[], int numberOfAttributes, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2190
virtual void onImageMediaUploadResult(long long requestId, IImageMessage *imageMessage, UPLOAD_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:1961
virtual void onQueryPeersBySubscriptionOptionResult(long long requestId, const char *peerIds[], int peerCount, QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR errorCode)
Definition: IAgoraRtmService.h:2046
virtual void onSetLocalUserAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2075
virtual void onMediaDownloadToMemoryResult(long long requestId, const char *memory, long long length, DOWNLOAD_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:1990
virtual void onSubscriptionRequestResult(long long requestId, PEER_SUBSCRIPTION_STATUS_ERR errorCode)
Definition: IAgoraRtmService.h:2032
virtual void onMessageReceivedFromPeer(const char *peerId, const IMessage *message)
Definition: IAgoraRtmService.h:1870
Definition: IAgoraRtmService.h:2255
virtual int cancelMediaUpload(long long requestId)=0
virtual void removeEventHandler(IRtmServiceEventHandler *eventHandler)=0
virtual int unsubscribePeersOnlineStatus(const char *peerIds[], int peerCount, long long &requestId)=0
virtual int queryPeersBySubscriptionOption(PEER_SUBSCRIPTION_OPTION option, long long &requestId)=0
virtual int setLogFile(const char *logfile)=0
virtual int sendMessageToPeer(const char *peerId, const IMessage *message, const SendMessageOptions &options)=0
virtual int addOrUpdateLocalUserAttributes(const RtmAttribute *attributes, int numberOfAttributes, long long &requestId)=0
virtual int getUserAttributes(const char *userId, long long &requestId)=0
virtual int deleteChannelAttributesByKeys(const char *channelId, const char *attributeKeys[], int numberOfKeys, const ChannelAttributeOptions &options, long long &requestId)=0
virtual int login(const char *token, const char *userId)=0
virtual int renewToken(const char *token)=0
virtual int subscribePeersOnlineStatus(const char *peerIds[], int peerCount, long long &requestId)=0
virtual int queryPeersOnlineStatus(const char *peerIds[], int peerCount, long long &requestId)=0
virtual int getChannelAttributes(const char *channelId, long long &requestId)=0
virtual int setLogFilter(LOG_FILTER_TYPE filter)=0
virtual int getChannelMemberCount(const char *channelIds[], int channelCount, long long &requestId)=0
virtual IMessage * createMessage(const uint8_t *rawData, int length, const char *description)=0
virtual int initialize(const char *appId, IRtmServiceEventHandler *eventHandler)=0
virtual IMessage * createMessage()=0
virtual void release(bool sync=false)=0
virtual int downloadMediaToFile(const char *mediaId, const char *filePath, long long &requestId)=0
virtual int createImageMessageByUploading(const char *filePath, long long &requestId)=0
virtual IImageMessage * createImageMessageByMediaId(const char *mediaId)=0
virtual IChannel * createChannel(const char *channelId, IChannelEventHandler *eventHandler)=0
virtual IRtmChannelAttribute * createChannelAttribute()=0
virtual int setLocalUserAttributes(const RtmAttribute *attributes, int numberOfAttributes, long long &requestId)=0
virtual void addEventHandler(IRtmServiceEventHandler *eventHandler)=0
virtual int createFileMessageByUploading(const char *filePath, long long &requestId)=0
virtual IRtmCallManager * getRtmCallManager(IRtmCallEventHandler *eventHandler)=0
virtual int setChannelAttributes(const char *channelId, const IRtmChannelAttribute *attributes[], int numberOfAttributes, const ChannelAttributeOptions &options, long long &requestId)=0
virtual ~IRtmService()
Definition: IAgoraRtmService.h:2257
virtual IMessage * createMessage(const char *message)=0
virtual IFileMessage * createFileMessageByMediaId(const char *mediaId)=0
virtual int getChannelAttributesByKeys(const char *channelId, const char *attributeKeys[], int numberOfKeys, long long &requestId)=0
virtual IMessage * createMessage(const uint8_t *rawData, int length)=0
virtual int deleteLocalUserAttributesByKeys(const char *attributeKeys[], int numberOfKeys, long long &requestId)=0
virtual int clearLocalUserAttributes(long long &requestId)=0
virtual int cancelMediaDownload(long long requestId)=0
virtual int downloadMediaToMemory(const char *mediaId, long long &requestId)=0
virtual int addOrUpdateChannelAttributes(const char *channelId, const IRtmChannelAttribute *attributes[], int numberOfAttributes, const ChannelAttributeOptions &options, long long &requestId)=0
virtual int setLogFileSize(int fileSizeInKBytes)=0
virtual int getUserAttributesByKeys(const char *userId, const char *attributeKeys[], int numberOfKeys, long long &requestId)=0
virtual int setParameters(const char *parameters)=0
virtual int sendMessageToPeer(const char *peerId, const IMessage *message)=0
virtual int clearChannelAttributes(const char *channelId, const ChannelAttributeOptions &options, long long &requestId)=0
AGORA_API IRtmService *AGORA_CALL createRtmService()
RTM_AREA_CODE
Definition: IAgoraRtmService.h:3013
AGORA_API SET_RTM_SERVICE_CONTEXT_ERR_CODE AGORA_CALL setRtmServiceContext(const RtmServiceContext &context)
AGORA_API const char *AGORA_CALL getRtmSdkVersion()
RTM_CLOUD_PROXY_TYPE
Definition: IAgoraRtmService.h:3046
SET_RTM_SERVICE_CONTEXT_ERR_CODE
Definition: IAgoraRtmService.h:3077
@ AREA_CODE_IN
Definition: IAgoraRtmService.h:3037
@ AREA_CODE_JP
Definition: IAgoraRtmService.h:3033
@ AREA_CODE_GLOB
Definition: IAgoraRtmService.h:3041
@ AREA_CODE_CN
Definition: IAgoraRtmService.h:3017
@ AREA_CODE_AS
Definition: IAgoraRtmService.h:3029
@ AREA_CODE_NA
Definition: IAgoraRtmService.h:3021
@ AREA_CODE_EU
Definition: IAgoraRtmService.h:3025
@ RTM_NONE_PROXY
Definition: IAgoraRtmService.h:3050
@ RTM_TCP_PROXY
Definition: IAgoraRtmService.h:3054
@ SET_RTM_SERVICE_CONTEXT_ERR_OK
Definition: IAgoraRtmService.h:3081
@ SET_RTM_SERVICE_CONTEXT_ERR_FAILURE
Definition: IAgoraRtmService.h:3085
LEAVE_CHANNEL_REASON
Reasons why a user leaves the channel.
Definition: IAgoraRtmService.h:478
@ LEAVE_CHANNEL_REASON_QUIT
Definition: IAgoraRtmService.h:483
@ LEAVE_CHANNEL_REASON_KICKED
Definition: IAgoraRtmService.h:488
PEER_ONLINE_STATE
The online states of a peer.
Definition: IAgoraRtmService.h:627
@ PEER_ONLINE_STATE_UNREACHABLE
Definition: IAgoraRtmService.h:637
@ PEER_ONLINE_STATE_ONLINE
Definition: IAgoraRtmService.h:632
@ PEER_ONLINE_STATE_OFFLINE
Definition: IAgoraRtmService.h:642
DOWNLOAD_MEDIA_ERR_CODE
Error codes related to downloading a file or image.
Definition: IAgoraRtmService.h:855
@ DOWNLOAD_MEDIA_ERR_FAILURE
Definition: IAgoraRtmService.h:864
@ DOWNLOAD_MEDIA_ERR_INTERRUPTED
Definition: IAgoraRtmService.h:891
@ DOWNLOAD_MEDIA_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:896
@ DOWNLOAD_MEDIA_ERR_NOT_EXIST
Definition: IAgoraRtmService.h:878
@ DOWNLOAD_MEDIA_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:869
@ DOWNLOAD_MEDIA_ERR_TIMEOUT
Definition: IAgoraRtmService.h:873
@ DOWNLOAD_MEDIA_ERR_CONCURRENCY_LIMIT_EXCEEDED
Definition: IAgoraRtmService.h:883
@ DOWNLOAD_MEDIA_ERR_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:901
@ DOWNLOAD_MEDIA_ERR_OK
Definition: IAgoraRtmService.h:859
PEER_SUBSCRIPTION_OPTION
Subscription types.
Definition: IAgoraRtmService.h:648
@ PEER_SUBSCRIPTION_OPTION_ONLINE_STATUS
Definition: IAgoraRtmService.h:652
LOGIN_ERR_CODE
Error codes related to login.
Definition: IAgoraRtmService.h:86
@ LOGIN_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:106
@ LOGIN_ERR_OK
Definition: IAgoraRtmService.h:91
@ LOGIN_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:141
@ LOGIN_ERR_TOKEN_EXPIRED
Definition: IAgoraRtmService.h:121
@ LOGIN_ERR_INVALID_APP_ID
Definition: IAgoraRtmService.h:111
@ LOGIN_ERR_REJECTED
Definition: IAgoraRtmService.h:101
@ LOGIN_ERR_UNKNOWN
Definition: IAgoraRtmService.h:96
@ LOGIN_ERR_INVALID_TOKEN
Definition: IAgoraRtmService.h:116
@ LOGIN_ERR_NOT_AUTHORIZED
Definition: IAgoraRtmService.h:126
@ LOGIN_ERR_TIMEOUT
Definition: IAgoraRtmService.h:136
@ LOGIN_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:146
@ LOGIN_ERR_ALREADY_LOGGED_IN
Definition: IAgoraRtmService.h:131
PEER_SUBSCRIPTION_STATUS_ERR
Error codes related to subscribing to or unsubscribing from the status of specified peers.
Definition: IAgoraRtmService.h:658
@ PEER_SUBSCRIPTION_STATUS_ERR_OK
Definition: IAgoraRtmService.h:663
@ PEER_SUBSCRIPTION_STATUS_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:688
@ PEER_SUBSCRIPTION_STATUS_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:673
@ PEER_SUBSCRIPTION_STATUS_ERR_FAILURE
Definition: IAgoraRtmService.h:668
@ PEER_SUBSCRIPTION_STATUS_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:703
@ PEER_SUBSCRIPTION_STATUS_ERR_OVERFLOW
Definition: IAgoraRtmService.h:693
@ PEER_SUBSCRIPTION_STATUS_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:698
@ PEER_SUBSCRIPTION_STATUS_ERR_TIMEOUT
Definition: IAgoraRtmService.h:683
@ PEER_SUBSCRIPTION_STATUS_ERR_REJECTED
Definition: IAgoraRtmService.h:678
MESSAGE_TYPE
Message types.
Definition: IAgoraRtmService.h:991
@ MESSAGE_TYPE_RAW
Definition: IAgoraRtmService.h:1006
@ MESSAGE_TYPE_FILE
Definition: IAgoraRtmService.h:1011
@ MESSAGE_TYPE_UNDEFINED
Definition: IAgoraRtmService.h:996
@ MESSAGE_TYPE_IMAGE
Definition: IAgoraRtmService.h:1016
@ MESSAGE_TYPE_TEXT
Definition: IAgoraRtmService.h:1001
QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR
Error codes related to getting a list of the peers by subscription option type.
Definition: IAgoraRtmService.h:709
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:729
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_FAILURE
Definition: IAgoraRtmService.h:719
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:734
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:739
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_OK
Definition: IAgoraRtmService.h:714
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_TIMEOUT
Definition: IAgoraRtmService.h:724
UPLOAD_MEDIA_ERR_CODE
Error codes related to uploading a file or image.
Definition: IAgoraRtmService.h:908
@ UPLOAD_MEDIA_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:922
@ UPLOAD_MEDIA_ERR_OK
Definition: IAgoraRtmService.h:912
@ UPLOAD_MEDIA_ERR_SIZE_OVERFLOW
Definition: IAgoraRtmService.h:932
@ UPLOAD_MEDIA_ERR_CONCURRENCY_LIMIT_EXCEEDED
Definition: IAgoraRtmService.h:936
@ UPLOAD_MEDIA_ERR_INTERRUPTED
Definition: IAgoraRtmService.h:943
@ UPLOAD_MEDIA_ERR_TIMEOUT
Definition: IAgoraRtmService.h:927
@ UPLOAD_MEDIA_ERR_FAILURE
Definition: IAgoraRtmService.h:917
@ UPLOAD_MEDIA_ERR_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:953
@ UPLOAD_MEDIA_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:948
INIT_ERR_CODE
Error codes related to Initialization.
Definition: IAgoraRtmService.h:54
@ INIT_ERR_FAILURE
Definition: IAgoraRtmService.h:64
@ INIT_ERR_INVALID_APP_ID
Definition: IAgoraRtmService.h:74
@ INIT_ERR_OK
Definition: IAgoraRtmService.h:59
@ INIT_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:79
@ INIT_ERR_ALREADY_INITIALIZED
Definition: IAgoraRtmService.h:69
QUERY_PEERS_ONLINE_STATUS_ERR
Error codes related to querying the online status of the specified peers.
Definition: IAgoraRtmService.h:581
@ QUERY_PEERS_ONLINE_STATUS_ERR_FAILURE
Definition: IAgoraRtmService.h:591
@ QUERY_PEERS_ONLINE_STATUS_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:616
@ QUERY_PEERS_ONLINE_STATUS_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:611
@ QUERY_PEERS_ONLINE_STATUS_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:621
@ QUERY_PEERS_ONLINE_STATUS_ERR_REJECTED
Definition: IAgoraRtmService.h:601
@ QUERY_PEERS_ONLINE_STATUS_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:596
@ QUERY_PEERS_ONLINE_STATUS_ERR_TIMEOUT
Definition: IAgoraRtmService.h:606
@ QUERY_PEERS_ONLINE_STATUS_ERR_OK
Definition: IAgoraRtmService.h:586
CONNECTION_CHANGE_REASON
Reasons for a connection state change.
Definition: IAgoraRtmService.h:274
@ CONNECTION_CHANGE_REASON_BANNED_BY_SERVER
Definition: IAgoraRtmService.h:309
@ CONNECTION_CHANGE_REASON_REMOTE_LOGIN
Definition: IAgoraRtmService.h:314
@ CONNECTION_CHANGE_REASON_LOGIN_TIMEOUT
Definition: IAgoraRtmService.h:294
@ CONNECTION_CHANGE_REASON_LOGOUT
Definition: IAgoraRtmService.h:304
@ CONNECTION_CHANGE_REASON_LOGIN_FAILURE
Definition: IAgoraRtmService.h:289
@ CONNECTION_CHANGE_REASON_LOGIN
Definition: IAgoraRtmService.h:279
@ CONNECTION_CHANGE_REASON_INTERRUPTED
Definition: IAgoraRtmService.h:299
@ CONNECTION_CHANGE_REASON_LOGIN_SUCCESS
Definition: IAgoraRtmService.h:284
GET_MEMBERS_ERR
Error codes related to retrieving a channel member list.
Definition: IAgoraRtmService.h:535
@ GET_MEMBERS_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:575
@ GET_MEMBERS_ERR_NOT_IN_CHANNEL
Definition: IAgoraRtmService.h:565
@ GET_MEMBERS_ERR_REJECTED
Definition: IAgoraRtmService.h:550
@ GET_MEMBERS_ERR_FAILURE
Definition: IAgoraRtmService.h:545
@ GET_MEMBERS_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:570
@ GET_MEMBERS_ERR_OK
Definition: IAgoraRtmService.h:540
@ GET_MEMBERS_ERR_TIMEOUT
Definition: IAgoraRtmService.h:555
@ GET_MEMBERS_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:560
ATTRIBUTE_OPERATION_ERR
Error codes related to attrubute operations.
Definition: IAgoraRtmService.h:745
@ ATTRIBUTE_OPERATION_ERR_USER_NOT_FOUND
Definition: IAgoraRtmService.h:788
@ ATTRIBUTE_OPERATION_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:798
@ ATTRIBUTE_OPERATION_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:783
@ ATTRIBUTE_OPERATION_ERR_OK
Definition: IAgoraRtmService.h:750
@ ATTRIBUTE_OPERATION_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:803
@ ATTRIBUTE_OPERATION_ERR_TIMEOUT
Definition: IAgoraRtmService.h:793
@ ATTRIBUTE_OPERATION_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:765
@ ATTRIBUTE_OPERATION_ERR_NOT_READY
Definition: IAgoraRtmService.h:755
@ ATTRIBUTE_OPERATION_ERR_FAILURE
Definition: IAgoraRtmService.h:760
@ ATTRIBUTE_OPERATION_ERR_SIZE_OVERFLOW
Definition: IAgoraRtmService.h:773
CONNECTION_STATE
Connection states between the SDK and the Agora RTM system.
Definition: IAgoraRtmService.h:229
@ CONNECTION_STATE_ABORTED
Definition: IAgoraRtmService.h:268
@ CONNECTION_STATE_CONNECTING
Definition: IAgoraRtmService.h:244
@ CONNECTION_STATE_RECONNECTING
Definition: IAgoraRtmService.h:261
@ CONNECTION_STATE_DISCONNECTED
Definition: IAgoraRtmService.h:236
@ CONNECTION_STATE_CONNECTED
Definition: IAgoraRtmService.h:253
RENEW_TOKEN_ERR_CODE
Error codes related to renewing the RTM Token.
Definition: IAgoraRtmService.h:178
@ RENEW_TOKEN_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:203
@ RENEW_TOKEN_ERR_FAILURE
Definition: IAgoraRtmService.h:188
@ RENEW_TOKEN_ERR_OK
Definition: IAgoraRtmService.h:183
@ RENEW_TOKEN_ERR_REJECTED
Definition: IAgoraRtmService.h:198
@ RENEW_TOKEN_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:223
@ RENEW_TOKEN_ERR_INVALID_TOKEN
Definition: IAgoraRtmService.h:213
@ RENEW_TOKEN_ERR_TOKEN_EXPIRED
Definition: IAgoraRtmService.h:208
@ RENEW_TOKEN_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:218
@ RENEW_TOKEN_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:193
CHANNEL_MESSAGE_ERR_CODE
Error codes related to sending a channel message.
Definition: IAgoraRtmService.h:494
@ CHANNEL_MESSAGE_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:524
@ CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:529
@ CHANNEL_MESSAGE_ERR_FAILURE
Definition: IAgoraRtmService.h:504
@ CHANNEL_MESSAGE_ERR_SENT_TIMEOUT
Definition: IAgoraRtmService.h:509
@ CHANNEL_MESSAGE_ERR_INVALID_MESSAGE
Definition: IAgoraRtmService.h:519
@ CHANNEL_MESSAGE_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:514
@ CHANNEL_MESSAGE_ERR_OK
Definition: IAgoraRtmService.h:499
PEER_MESSAGE_ERR_CODE
Error codes related to sending a peer-to-peer message.
Definition: IAgoraRtmService.h:320
@ PEER_MESSAGE_ERR_SENT_TIMEOUT
Definition: IAgoraRtmService.h:335
@ PEER_MESSAGE_ERR_FAILURE
Definition: IAgoraRtmService.h:330
@ PEER_MESSAGE_ERR_INVALID_MESSAGE
Definition: IAgoraRtmService.h:360
@ PEER_MESSAGE_ERR_IMCOMPATIBLE_MESSAGE
Definition: IAgoraRtmService.h:365
@ PEER_MESSAGE_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:370
@ PEER_MESSAGE_ERR_PEER_UNREACHABLE
Definition: IAgoraRtmService.h:340
@ PEER_MESSAGE_ERR_INVALID_USERID
Definition: IAgoraRtmService.h:355
@ PEER_MESSAGE_ERR_CACHED_BY_SERVER
Definition: IAgoraRtmService.h:345
@ PEER_MESSAGE_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:350
@ PEER_MESSAGE_ERR_OK
Definition: IAgoraRtmService.h:325
@ PEER_MESSAGE_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:375
GET_CHANNEL_MEMBER_COUNT_ERR_CODE
Error codes related to retrieving the channel member count of specified channels.
Definition: IAgoraRtmService.h:809
@ GET_CHANNEL_MEMBER_COUNT_ERR_EXCEED_LIMIT
Definition: IAgoraRtmService.h:839
@ GET_CHANNEL_MEMBER_COUNT_ERR_OK
Definition: IAgoraRtmService.h:814
@ GET_CHANNEL_MEMBER_COUNT_ERR_TIMEOUT
Definition: IAgoraRtmService.h:834
@ GET_CHANNEL_MEMBER_COUNT_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:829
@ GET_CHANNEL_MEMBER_COUNT_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:849
@ GET_CHANNEL_MEMBER_COUNT_ERR_FAILURE
Definition: IAgoraRtmService.h:819
@ GET_CHANNEL_MEMBER_COUNT_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:824
@ GET_CHANNEL_MEMBER_COUNT_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:844
LEAVE_CHANNEL_ERR
Error codes related to leaving a channel.
Definition: IAgoraRtmService.h:442
@ LEAVE_CHANNEL_ERR_OK
Definition: IAgoraRtmService.h:447
@ LEAVE_CHANNEL_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:467
@ LEAVE_CHANNEL_ERR_REJECTED
Definition: IAgoraRtmService.h:457
@ LEAVE_CHANNEL_ERR_NOT_IN_CHANNEL
Definition: IAgoraRtmService.h:462
@ LEAVE_CHANNEL_ERR_FAILURE
Definition: IAgoraRtmService.h:452
@ LEAVE_CHANNEL_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:472
JOIN_CHANNEL_ERR
Error codes related to joining a channel.
Definition: IAgoraRtmService.h:381
@ JOIN_CHANNEL_ERR_JOIN_SAME_CHANNEL_TOO_OFTEN
Definition: IAgoraRtmService.h:426
@ JOIN_CHANNEL_ERR_FAILURE
Definition: IAgoraRtmService.h:391
@ JOIN_CHANNEL_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:436
@ JOIN_CHANNEL_ERR_OK
Definition: IAgoraRtmService.h:386
@ JOIN_CHANNEL_ERR_REJECTED
Definition: IAgoraRtmService.h:396
@ JOIN_CHANNEL_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:421
@ JOIN_CHANNEL_ERR_ALREADY_JOINED
Definition: IAgoraRtmService.h:416
@ JOIN_CHANNEL_TIMEOUT
Definition: IAgoraRtmService.h:406
@ JOIN_CHANNEL_ERR_EXCEED_LIMIT
Definition: IAgoraRtmService.h:411
@ JOIN_CHANNEL_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:431
@ JOIN_CHANNEL_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:401
LOG_FILTER_TYPE
Output log filter level.
Definition: IAgoraRtmService.h:2222
@ LOG_FILTER_ERROR
Definition: IAgoraRtmService.h:2242
@ LOG_FILTER_CRITICAL
Definition: IAgoraRtmService.h:2247
@ LOG_FILTER_INFO
Definition: IAgoraRtmService.h:2232
@ LOG_FILTER_MASK
Definition: IAgoraRtmService.h:2251
@ LOG_FILTER_WARN
Definition: IAgoraRtmService.h:2237
@ LOG_FILTER_OFF
Definition: IAgoraRtmService.h:2227
LOGOUT_ERR_CODE
Error codes related to logout.
Definition: IAgoraRtmService.h:152
@ LOGOUT_ERR_OK
Definition: IAgoraRtmService.h:157
@ LOGOUT_ERR_REJECTED
Definition: IAgoraRtmService.h:162
@ LOGOUT_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:172
@ LOGOUT_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:167
CANCEL_MEDIA_ERR_CODE
Error codes related to cancelling a download task or cancelling an upload task.
Definition: IAgoraRtmService.h:959
@ CANCEL_MEDIA_ERR_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:983
@ CANCEL_MEDIA_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:978
@ CANCEL_MEDIA_ERR_NOT_EXIST
Definition: IAgoraRtmService.h:973
@ CANCEL_MEDIA_ERR_OK
Definition: IAgoraRtmService.h:963
@ CANCEL_MEDIA_ERR_FAILURE
Definition: IAgoraRtmService.h:968
Definition: IAgoraRtmCallManager.h:11
Data structure holding channel attribute-specific options.
Definition: IAgoraRtmService.h:1144
bool enableNotificationToChannelMembers
Definition: IAgoraRtmService.h:1154
ChannelAttributeOptions()
Definition: IAgoraRtmService.h:1155
The data structure holding a channel ID and the current channel member count.
Definition: IAgoraRtmService.h:1504
int count
Definition: IAgoraRtmService.h:1515
const char * channelId
Definition: IAgoraRtmService.h:1508
The data structure holding an RTM user and the user's online status.
Definition: IAgoraRtmService.h:1473
const char * peerId
Definition: IAgoraRtmService.h:1478
PEER_ONLINE_STATE onlineState
Definition: IAgoraRtmService.h:1497
bool isOnline
Definition: IAgoraRtmService.h:1488
A data structure holding a user attribute key and its value.
Definition: IAgoraRtmService.h:1056
const char * value
Definition: IAgoraRtmService.h:1066
const char * key
Definition: IAgoraRtmService.h:1061
Definition: IAgoraRtmService.h:3061
int areaCode
Definition: IAgoraRtmService.h:3065
RTM_CLOUD_PROXY_TYPE proxyType
Definition: IAgoraRtmService.h:3070
Message sending options.
Definition: IAgoraRtmService.h:1022
bool enableHistoricalMessaging
Definition: IAgoraRtmService.h:1042
bool enableOfflineMessaging
Definition: IAgoraRtmService.h:1033
SendMessageOptions()
Definition: IAgoraRtmService.h:1044