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"
1584 (
const char *) userId;
1626 (
long long) messageId;
1686 (int) numberOfAttributes;
1839 (
const char*) token;
1892 (
long long) messageId;
1951 (
long long) requestId;
1970 (
long long) requestId;
1983 (
long long) requestId;
1997 (
long long) requestId;
2010 (
long long)requestId;
2026 (
long long) requestId;
2027 (
const char*) memory;
2040 (
long long) requestId;
2054 (
long long) requestId;
2068 (
long long)requestId;
2082 (
const char**)peerIds;
2111 (
long long) requestId;
2123 (
long long) requestId;
2135 (
long long) requestId;
2147 (
long long) requestId;
2162 (
long long) requestId;
2164 (int) numberOfAttributes;
2176 (
long long) requestId;
2188 (
long long) requestId;
2200 (
long long) requestId;
2212 (
long long) requestId;
2242 (
long long) requestId;
2249 class IRtmCallManager;
2250 class IRtmCallEventHandler;
2356 virtual int login(
const char *token,
const char *userId) = 0;
3043#ifndef AGORA_SDK_BOTH_RTM_AND_RTC
Agora RTM 频道方法回调。
Definition: IAgoraRtmService.h:1536
virtual void onJoinSuccess()
Definition: IAgoraRtmService.h:1550
virtual void onFileMessageReceived(const char *userId, const IFileMessage *message)
Definition: IAgoraRtmService.h:1609
virtual void onSendMessageResult(long long messageId, CHANNEL_MESSAGE_ERR_CODE state)
Definition: IAgoraRtmService.h:1624
virtual void onMemberJoined(IChannelMember *member)
Definition: IAgoraRtmService.h:1639
virtual void onGetMembers(IChannelMember **members, int userCount, GET_MEMBERS_ERR errorCode)
Definition: IAgoraRtmService.h:1669
virtual void onImageMessageReceived(const char *userId, const IImageMessage *message)
Definition: IAgoraRtmService.h:1596
virtual void onAttributesUpdated(const IRtmChannelAttribute *attributes[], int numberOfAttributes)
Definition: IAgoraRtmService.h:1683
virtual void onMessageReceived(const char *userId, const IMessage *message)
Definition: IAgoraRtmService.h:1582
virtual ~IChannelEventHandler()
Definition: IAgoraRtmService.h:1539
virtual void onLeave(LEAVE_CHANNEL_ERR errorCode)
Definition: IAgoraRtmService.h:1569
virtual void onMemberLeft(IChannelMember *member)
Definition: IAgoraRtmService.h:1653
virtual void onJoinFailure(JOIN_CHANNEL_ERR errorCode)
Definition: IAgoraRtmService.h:1559
virtual void onMemberCountUpdated(int memberCount)
Definition: IAgoraRtmService.h:1699
Agora RTM 频道方法。
Definition: IAgoraRtmService.h:1709
virtual int sendMessage(const IMessage *message, const SendMessageOptions &options)=0
virtual ~IChannel()
Definition: IAgoraRtmService.h:1711
virtual int getMembers()=0
virtual int sendMessage(const IMessage *message)=0
virtual const char * getId() const =0
用于获取 Agora RTM 频道成员属性的类。
Definition: IAgoraRtmService.h:1457
virtual ~IChannelMember()
Definition: IAgoraRtmService.h:1459
virtual const char * getChannelId() const =0
virtual const char * getUserId() const =0
用于设置或获取文件消息属性的类。可用于点对点或频道消息。
Definition: IAgoraRtmService.h:1258
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
用于设置或获取图片消息属性的类。可用于点对点或频道消息。
Definition: IAgoraRtmService.h:1320
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
用于设置或获取 Agora RTM 消息属性的类。可用于点对点或频道消息。
Definition: IAgoraRtmService.h:1175
virtual const char * getRawMessageData() const =0
virtual bool isOfflineMessage() const =0
virtual ~IMessage()
Definition: IAgoraRtmService.h:1177
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:213
Definition: IAgoraRtmCallManager.h:309
用于设置或获取频道属性的类。
Definition: IAgoraRtmService.h:1101
virtual const char * getValue() const =0
virtual void setKey(const char *key)=0
virtual ~IRtmChannelAttribute()
Definition: IAgoraRtmService.h:1103
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:1808
virtual void onDeleteChannelAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2198
virtual void onMediaDownloadToFileResult(long long requestId, DOWNLOAD_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:2008
virtual void onClearChannelAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2210
virtual void onPeersOnlineStatusChanged(const PeerOnlineStatus peersStatus[], int peerCount)
Definition: IAgoraRtmService.h:2097
virtual void onAddOrUpdateChannelAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2186
virtual void onImageMessageReceivedFromPeer(const char *peerId, const IImageMessage *message)
Definition: IAgoraRtmService.h:1917
virtual void onDeleteLocalUserAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2133
virtual void onLoginFailure(LOGIN_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:1826
virtual void onFileMessageReceivedFromPeer(const char *peerId, const IFileMessage *message)
Definition: IAgoraRtmService.h:1931
virtual void onSendMessageResult(long long messageId, PEER_MESSAGE_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:1890
virtual void onMediaUploadingProgress(long long requestId, const MediaOperationProgress &progress)
Definition: IAgoraRtmService.h:1949
virtual void onLogout(LOGOUT_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:1869
virtual void onMediaCancelResult(long long requestId, CANCEL_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:2038
virtual void onGetUserAttributesResult(long long requestId, const char *userId, const RtmAttribute *attributes, int numberOfAttributes, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2160
virtual void onTokenExpired()
Definition: IAgoraRtmService.h:1850
virtual void onQueryPeersOnlineStatusResult(long long requestId, const PeerOnlineStatus *peersStatus, int peerCount, QUERY_PEERS_ONLINE_STATUS_ERR errorCode)
Definition: IAgoraRtmService.h:2052
virtual void onSetChannelAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2174
virtual void onGetChannelMemberCountResult(long long requestId, const ChannelMemberCount *channelMemberCounts, int channelCount, GET_CHANNEL_MEMBER_COUNT_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:2240
virtual void onLoginSuccess()
Definition: IAgoraRtmService.h:1819
virtual ~IRtmServiceEventHandler()
Definition: IAgoraRtmService.h:1810
virtual void onClearLocalUserAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2145
virtual void onRenewTokenResult(const char *token, RENEW_TOKEN_ERR_CODE errorCode)
Definition: IAgoraRtmService.h:1837
virtual void onMediaDownloadingProgress(long long requestId, const MediaOperationProgress &progress)
Definition: IAgoraRtmService.h:1968
virtual void onConnectionStateChanged(CONNECTION_STATE state, CONNECTION_CHANGE_REASON reason)
Definition: IAgoraRtmService.h:1880
virtual void onTokenPrivilegeWillExpire()
Definition: IAgoraRtmService.h:1860
virtual void onFileMediaUploadResult(long long requestId, IFileMessage *fileMessage, UPLOAD_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:1981
virtual void onAddOrUpdateLocalUserAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2121
virtual void onGetChannelAttributesResult(long long requestId, const IRtmChannelAttribute *attributes[], int numberOfAttributes, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2224
virtual void onImageMediaUploadResult(long long requestId, IImageMessage *imageMessage, UPLOAD_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:1995
virtual void onQueryPeersBySubscriptionOptionResult(long long requestId, const char *peerIds[], int peerCount, QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR errorCode)
Definition: IAgoraRtmService.h:2080
virtual void onSetLocalUserAttributesResult(long long requestId, ATTRIBUTE_OPERATION_ERR errorCode)
Definition: IAgoraRtmService.h:2109
virtual void onMediaDownloadToMemoryResult(long long requestId, const char *memory, long long length, DOWNLOAD_MEDIA_ERR_CODE code)
Definition: IAgoraRtmService.h:2024
virtual void onSubscriptionRequestResult(long long requestId, PEER_SUBSCRIPTION_STATUS_ERR errorCode)
Definition: IAgoraRtmService.h:2066
virtual void onMessageReceivedFromPeer(const char *peerId, const IMessage *message)
Definition: IAgoraRtmService.h:1902
Definition: IAgoraRtmService.h:2290
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:2292
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:3047
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:3080
SET_RTM_SERVICE_CONTEXT_ERR_CODE
Definition: IAgoraRtmService.h:3111
@ AREA_CODE_IN
Definition: IAgoraRtmService.h:3071
@ AREA_CODE_JP
Definition: IAgoraRtmService.h:3067
@ AREA_CODE_GLOB
Definition: IAgoraRtmService.h:3075
@ AREA_CODE_CN
Definition: IAgoraRtmService.h:3051
@ AREA_CODE_AS
Definition: IAgoraRtmService.h:3063
@ AREA_CODE_NA
Definition: IAgoraRtmService.h:3055
@ AREA_CODE_EU
Definition: IAgoraRtmService.h:3059
@ RTM_NONE_PROXY
Definition: IAgoraRtmService.h:3084
@ RTM_TCP_PROXY
Definition: IAgoraRtmService.h:3088
@ SET_RTM_SERVICE_CONTEXT_ERR_OK
Definition: IAgoraRtmService.h:3115
@ SET_RTM_SERVICE_CONTEXT_ERR_FAILURE
Definition: IAgoraRtmService.h:3119
LEAVE_CHANNEL_REASON
离开频道原因。
Definition: IAgoraRtmService.h:489
@ LEAVE_CHANNEL_REASON_QUIT
Definition: IAgoraRtmService.h:494
@ LEAVE_CHANNEL_REASON_KICKED
Definition: IAgoraRtmService.h:499
PEER_ONLINE_STATE
用户在线状态类型。
Definition: IAgoraRtmService.h:638
@ PEER_ONLINE_STATE_UNREACHABLE
Definition: IAgoraRtmService.h:648
@ PEER_ONLINE_STATE_ONLINE
Definition: IAgoraRtmService.h:643
@ PEER_ONLINE_STATE_OFFLINE
Definition: IAgoraRtmService.h:653
DOWNLOAD_MEDIA_ERR_CODE
文件或图片下载相关错误码。
Definition: IAgoraRtmService.h:867
@ DOWNLOAD_MEDIA_ERR_FAILURE
Definition: IAgoraRtmService.h:876
@ DOWNLOAD_MEDIA_ERR_INTERRUPTED
Definition: IAgoraRtmService.h:903
@ DOWNLOAD_MEDIA_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:908
@ DOWNLOAD_MEDIA_ERR_NOT_EXIST
Definition: IAgoraRtmService.h:890
@ DOWNLOAD_MEDIA_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:881
@ DOWNLOAD_MEDIA_ERR_TIMEOUT
Definition: IAgoraRtmService.h:885
@ DOWNLOAD_MEDIA_ERR_CONCURRENCY_LIMIT_EXCEEDED
Definition: IAgoraRtmService.h:895
@ DOWNLOAD_MEDIA_ERR_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:913
@ DOWNLOAD_MEDIA_ERR_OK
Definition: IAgoraRtmService.h:871
PEER_SUBSCRIPTION_OPTION
订阅类型。
Definition: IAgoraRtmService.h:659
@ PEER_SUBSCRIPTION_OPTION_ONLINE_STATUS
Definition: IAgoraRtmService.h:663
LOGIN_ERR_CODE
登录相关错误码。
Definition: IAgoraRtmService.h:85
@ LOGIN_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:105
@ LOGIN_ERR_OK
Definition: IAgoraRtmService.h:90
@ LOGIN_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:140
@ LOGIN_ERR_TOKEN_EXPIRED
Definition: IAgoraRtmService.h:120
@ LOGIN_ERR_INVALID_APP_ID
Definition: IAgoraRtmService.h:110
@ LOGIN_ERR_REJECTED
Definition: IAgoraRtmService.h:100
@ LOGIN_ERR_UNKNOWN
Definition: IAgoraRtmService.h:95
@ LOGIN_ERR_INVALID_TOKEN
Definition: IAgoraRtmService.h:115
@ LOGIN_ERR_NOT_AUTHORIZED
Definition: IAgoraRtmService.h:125
@ LOGIN_ERR_TIMEOUT
Definition: IAgoraRtmService.h:135
@ LOGIN_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:145
@ LOGIN_ERR_ALREADY_LOGIN
Definition: IAgoraRtmService.h:130
PEER_SUBSCRIPTION_STATUS_ERR
订阅或退订指定用户状态相关错误码。
Definition: IAgoraRtmService.h:669
@ PEER_SUBSCRIPTION_STATUS_ERR_OK
Definition: IAgoraRtmService.h:674
@ PEER_SUBSCRIPTION_STATUS_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:699
@ PEER_SUBSCRIPTION_STATUS_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:684
@ PEER_SUBSCRIPTION_STATUS_ERR_FAILURE
Definition: IAgoraRtmService.h:679
@ PEER_SUBSCRIPTION_STATUS_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:714
@ PEER_SUBSCRIPTION_STATUS_ERR_OVERFLOW
Definition: IAgoraRtmService.h:704
@ PEER_SUBSCRIPTION_STATUS_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:709
@ PEER_SUBSCRIPTION_STATUS_ERR_TIMEOUT
Definition: IAgoraRtmService.h:694
@ PEER_SUBSCRIPTION_STATUS_ERR_REJECTED
Definition: IAgoraRtmService.h:689
MESSAGE_TYPE
消息类型。
Definition: IAgoraRtmService.h:1001
@ MESSAGE_TYPE_RAW
Definition: IAgoraRtmService.h:1016
@ MESSAGE_TYPE_FILE
Definition: IAgoraRtmService.h:1021
@ MESSAGE_TYPE_UNDEFINED
Definition: IAgoraRtmService.h:1006
@ MESSAGE_TYPE_IMAGE
Definition: IAgoraRtmService.h:1026
@ MESSAGE_TYPE_TEXT
Definition: IAgoraRtmService.h:1011
QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR
根据订阅类型获取被订阅用户列表相关的错误码。
Definition: IAgoraRtmService.h:720
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:740
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_FAILURE
Definition: IAgoraRtmService.h:730
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:745
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:750
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_OK
Definition: IAgoraRtmService.h:725
@ QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_TIMEOUT
Definition: IAgoraRtmService.h:735
UPLOAD_MEDIA_ERR_CODE
文件或图片上传相关错误码。
Definition: IAgoraRtmService.h:920
@ UPLOAD_MEDIA_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:934
@ UPLOAD_MEDIA_ERR_OK
Definition: IAgoraRtmService.h:924
@ UPLOAD_MEDIA_ERR_SIZE_OVERFLOW
Definition: IAgoraRtmService.h:944
@ UPLOAD_MEDIA_ERR_CONCURRENCY_LIMIT_EXCEEDED
Definition: IAgoraRtmService.h:948
@ UPLOAD_MEDIA_ERR_INTERRUPTED
Definition: IAgoraRtmService.h:955
@ UPLOAD_MEDIA_ERR_TIMEOUT
Definition: IAgoraRtmService.h:939
@ UPLOAD_MEDIA_ERR_FAILURE
Definition: IAgoraRtmService.h:929
@ UPLOAD_MEDIA_ERR_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:965
@ UPLOAD_MEDIA_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:960
INIT_ERR_CODE
初始化 Agora RTM 服务相关错误码。
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
查询用户在线状态相关的错误码。
Definition: IAgoraRtmService.h:592
@ QUERY_PEERS_ONLINE_STATUS_ERR_FAILURE
Definition: IAgoraRtmService.h:602
@ QUERY_PEERS_ONLINE_STATUS_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:627
@ QUERY_PEERS_ONLINE_STATUS_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:622
@ QUERY_PEERS_ONLINE_STATUS_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:632
@ QUERY_PEERS_ONLINE_STATUS_ERR_REJECTED
Definition: IAgoraRtmService.h:612
@ QUERY_PEERS_ONLINE_STATUS_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:607
@ QUERY_PEERS_ONLINE_STATUS_ERR_TIMEOUT
Definition: IAgoraRtmService.h:617
@ QUERY_PEERS_ONLINE_STATUS_ERR_OK
Definition: IAgoraRtmService.h:597
CONNECTION_CHANGE_REASON
连接状态改变原因。
Definition: IAgoraRtmService.h:275
@ CONNECTION_CHANGE_REASON_BANNED_BY_SERVER
Definition: IAgoraRtmService.h:310
@ CONNECTION_CHANGE_REASON_REMOTE_LOGIN
Definition: IAgoraRtmService.h:315
@ CONNECTION_CHANGE_REASON_LOGIN_TIMEOUT
Definition: IAgoraRtmService.h:295
@ CONNECTION_CHANGE_REASON_LOGOUT
Definition: IAgoraRtmService.h:305
@ CONNECTION_CHANGE_REASON_LOGIN_FAILURE
Definition: IAgoraRtmService.h:290
@ CONNECTION_CHANGE_REASON_LOGIN
Definition: IAgoraRtmService.h:280
@ CONNECTION_CHANGE_REASON_INTERRUPTED
Definition: IAgoraRtmService.h:300
@ CONNECTION_CHANGE_REASON_LOGIN_SUCCESS
Definition: IAgoraRtmService.h:285
@ CONNECTION_CHANGE_REASON_TOKEN_EXPIRED
Definition: IAgoraRtmService.h:320
GET_MEMBERS_ERR
获取所在频道成员列表相关错误码。
Definition: IAgoraRtmService.h:546
@ GET_MEMBERS_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:586
@ GET_MEMBERS_ERR_NOT_IN_CHANNEL
Definition: IAgoraRtmService.h:576
@ GET_MEMBERS_ERR_REJECTED
Definition: IAgoraRtmService.h:561
@ GET_MEMBERS_ERR_FAILURE
Definition: IAgoraRtmService.h:556
@ GET_MEMBERS_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:581
@ GET_MEMBERS_ERR_OK
Definition: IAgoraRtmService.h:551
@ GET_MEMBERS_ERR_TIMEOUT
Definition: IAgoraRtmService.h:566
@ GET_MEMBERS_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:571
ATTRIBUTE_OPERATION_ERR
属性相关操作错误码。
Definition: IAgoraRtmService.h:756
@ ATTRIBUTE_OPERATION_ERR_USER_NOT_FOUND
Definition: IAgoraRtmService.h:799
@ ATTRIBUTE_OPERATION_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:809
@ ATTRIBUTE_OPERATION_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:794
@ ATTRIBUTE_OPERATION_ERR_OK
Definition: IAgoraRtmService.h:761
@ ATTRIBUTE_OPERATION_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:814
@ ATTRIBUTE_OPERATION_ERR_TIMEOUT
Definition: IAgoraRtmService.h:804
@ ATTRIBUTE_OPERATION_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:776
@ ATTRIBUTE_OPERATION_ERR_NOT_READY
Definition: IAgoraRtmService.h:766
@ ATTRIBUTE_OPERATION_ERR_FAILURE
Definition: IAgoraRtmService.h:771
@ ATTRIBUTE_OPERATION_ERR_SIZE_OVERFLOW
Definition: IAgoraRtmService.h:784
CONNECTION_STATE
SDK 与 Agora RTM 系统的连接状态。
Definition: IAgoraRtmService.h:228
@ CONNECTION_STATE_ABORTED
Definition: IAgoraRtmService.h:269
@ CONNECTION_STATE_CONNECTING
Definition: IAgoraRtmService.h:243
@ CONNECTION_STATE_RECONNECTING
Definition: IAgoraRtmService.h:260
@ CONNECTION_STATE_DISCONNECTED
Definition: IAgoraRtmService.h:235
@ CONNECTION_STATE_CONNECTED
Definition: IAgoraRtmService.h:252
RENEW_TOKEN_ERR_CODE
更新 RTM Token 相关错误码。
Definition: IAgoraRtmService.h:177
@ RENEW_TOKEN_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:202
@ RENEW_TOKEN_ERR_FAILURE
Definition: IAgoraRtmService.h:187
@ RENEW_TOKEN_ERR_OK
Definition: IAgoraRtmService.h:182
@ RENEW_TOKEN_ERR_REJECTED
Definition: IAgoraRtmService.h:197
@ RENEW_TOKEN_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:222
@ RENEW_TOKEN_ERR_INVALID_TOKEN
Definition: IAgoraRtmService.h:212
@ RENEW_TOKEN_ERR_TOKEN_EXPIRED
Definition: IAgoraRtmService.h:207
@ RENEW_TOKEN_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:217
@ RENEW_TOKEN_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:192
CHANNEL_MESSAGE_ERR_CODE
频道消息发送相关错误码。
Definition: IAgoraRtmService.h:505
@ CHANNEL_MESSAGE_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:535
@ CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:540
@ CHANNEL_MESSAGE_ERR_FAILURE
Definition: IAgoraRtmService.h:515
@ CHANNEL_MESSAGE_ERR_SENT_TIMEOUT
Definition: IAgoraRtmService.h:520
@ CHANNEL_MESSAGE_ERR_INVALID_MESSAGE
Definition: IAgoraRtmService.h:530
@ CHANNEL_MESSAGE_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:525
@ CHANNEL_MESSAGE_ERR_OK
Definition: IAgoraRtmService.h:510
PEER_MESSAGE_ERR_CODE
点对点消息发送相关错误码。
Definition: IAgoraRtmService.h:326
@ PEER_MESSAGE_ERR_SENT_TIMEOUT
Definition: IAgoraRtmService.h:341
@ PEER_MESSAGE_ERR_FAILURE
Definition: IAgoraRtmService.h:336
@ PEER_MESSAGE_ERR_INVALID_MESSAGE
Definition: IAgoraRtmService.h:366
@ PEER_MESSAGE_ERR_IMCOMPATIBLE_MESSAGE
Definition: IAgoraRtmService.h:371
@ PEER_MESSAGE_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:376
@ PEER_MESSAGE_ERR_PEER_UNREACHABLE
Definition: IAgoraRtmService.h:346
@ PEER_MESSAGE_ERR_INVALID_USERID
Definition: IAgoraRtmService.h:361
@ PEER_MESSAGE_ERR_CACHED_BY_SERVER
Definition: IAgoraRtmService.h:351
@ PEER_MESSAGE_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:356
@ PEER_MESSAGE_ERR_OK
Definition: IAgoraRtmService.h:331
@ PEER_MESSAGE_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:381
GET_CHANNEL_MEMBER_COUNT_ERR_CODE
查询单个或多个指定频道成员人数的相关错误码。
Definition: IAgoraRtmService.h:821
@ GET_CHANNEL_MEMBER_COUNT_ERR_EXCEED_LIMIT
Definition: IAgoraRtmService.h:851
@ GET_CHANNEL_MEMBER_COUNT_ERR_OK
Definition: IAgoraRtmService.h:826
@ GET_CHANNEL_MEMBER_COUNT_ERR_TIMEOUT
Definition: IAgoraRtmService.h:846
@ GET_CHANNEL_MEMBER_COUNT_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:841
@ GET_CHANNEL_MEMBER_COUNT_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:861
@ GET_CHANNEL_MEMBER_COUNT_ERR_FAILURE
Definition: IAgoraRtmService.h:831
@ GET_CHANNEL_MEMBER_COUNT_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:836
@ GET_CHANNEL_MEMBER_COUNT_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:856
LEAVE_CHANNEL_ERR
离开频道相关错误码。
Definition: IAgoraRtmService.h:448
@ LEAVE_CHANNEL_ERR_OK
Definition: IAgoraRtmService.h:453
@ LEAVE_CHANNEL_ERR_KICKED
Definition: IAgoraRtmService.h:473
@ LEAVE_CHANNEL_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:478
@ LEAVE_CHANNEL_ERR_REJECTED
Definition: IAgoraRtmService.h:463
@ LEAVE_CHANNEL_ERR_NOT_IN_CHANNEL
Definition: IAgoraRtmService.h:468
@ LEAVE_CHANNEL_ERR_FAILURE
Definition: IAgoraRtmService.h:458
@ LEAVE_CHANNEL_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:483
JOIN_CHANNEL_ERR
加入频道相关错误码。
Definition: IAgoraRtmService.h:387
@ JOIN_CHANNEL_ERR_JOIN_SAME_CHANNEL_TOO_OFTEN
Definition: IAgoraRtmService.h:432
@ JOIN_CHANNEL_ERR_FAILURE
Definition: IAgoraRtmService.h:397
@ JOIN_CHANNEL_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:442
@ JOIN_CHANNEL_ERR_OK
Definition: IAgoraRtmService.h:392
@ JOIN_CHANNEL_ERR_REJECTED
Definition: IAgoraRtmService.h:402
@ JOIN_CHANNEL_ERR_TOO_OFTEN
Definition: IAgoraRtmService.h:427
@ JOIN_CHANNEL_ERR_ALREADY_JOINED
Definition: IAgoraRtmService.h:422
@ JOIN_CHANNEL_TIMEOUT
Definition: IAgoraRtmService.h:412
@ JOIN_CHANNEL_ERR_EXCEED_LIMIT
Definition: IAgoraRtmService.h:417
@ JOIN_CHANNEL_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:437
@ JOIN_CHANNEL_ERR_INVALID_ARGUMENT
Definition: IAgoraRtmService.h:407
LOG_FILTER_TYPE
日志输出等级。
Definition: IAgoraRtmService.h:2256
@ LOG_FILTER_ERROR
Definition: IAgoraRtmService.h:2276
@ LOG_FILTER_CRITICAL
Definition: IAgoraRtmService.h:2281
@ LOG_FILTER_INFO
Definition: IAgoraRtmService.h:2266
@ LOG_FILTER_MASK
Definition: IAgoraRtmService.h:2286
@ LOG_FILTER_WARN
Definition: IAgoraRtmService.h:2271
@ LOG_FILTER_OFF
Definition: IAgoraRtmService.h:2261
LOGOUT_ERR_CODE
登出相关错误码。
Definition: IAgoraRtmService.h:151
@ LOGOUT_ERR_OK
Definition: IAgoraRtmService.h:156
@ LOGOUT_ERR_REJECTED
Definition: IAgoraRtmService.h:161
@ LOGOUT_ERR_USER_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:171
@ LOGOUT_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:166
CANCEL_MEDIA_ERR_CODE
取消上传或取消下载相关的错误码。
Definition: IAgoraRtmService.h:971
@ CANCEL_MEDIA_ERR_NOT_LOGGED_IN
Definition: IAgoraRtmService.h:995
@ CANCEL_MEDIA_ERR_NOT_INITIALIZED
Definition: IAgoraRtmService.h:990
@ CANCEL_MEDIA_ERR_NOT_EXIST
Definition: IAgoraRtmService.h:985
@ CANCEL_MEDIA_ERR_OK
Definition: IAgoraRtmService.h:975
@ CANCEL_MEDIA_ERR_FAILURE
Definition: IAgoraRtmService.h:980
Definition: IAgoraRtmCallManager.h:11
用于维护频道属性操作相关选项的数据结构。
Definition: IAgoraRtmService.h:1157
bool enableNotificationToChannelMembers
Definition: IAgoraRtmService.h:1167
ChannelAttributeOptions()
Definition: IAgoraRtmService.h:1168
用于维护频道最新成员人数的数据结构。
Definition: IAgoraRtmService.h:1517
int count
Definition: IAgoraRtmService.h:1529
const char * channelId
Definition: IAgoraRtmService.h:1522
存储 RTM 用户及其在线状态的数据结构。
Definition: IAgoraRtmService.h:1486
const char * peerId
Definition: IAgoraRtmService.h:1491
PEER_ONLINE_STATE onlineState
Definition: IAgoraRtmService.h:1510
bool isOnline
Definition: IAgoraRtmService.h:1501
用于维护用户属性的数据结构。
Definition: IAgoraRtmService.h:1067
const char * value
Definition: IAgoraRtmService.h:1077
const char * key
Definition: IAgoraRtmService.h:1072
Definition: IAgoraRtmService.h:3095
int areaCode
Definition: IAgoraRtmService.h:3099
RTM_CLOUD_PROXY_TYPE proxyType
Definition: IAgoraRtmService.h:3104
消息发送选项。
Definition: IAgoraRtmService.h:1032
bool enableHistoricalMessaging
Definition: IAgoraRtmService.h:1053
bool enableOfflineMessaging
Definition: IAgoraRtmService.h:1044
SendMessageOptions()
Definition: IAgoraRtmService.h:1055