类 | |
struct | agora::rtm::RtmServiceContext |
枚举 | |
enum | agora::rtm::RTM_AREA_CODE { agora::rtm::AREA_CODE_CN = (1 << 0), agora::rtm::AREA_CODE_NA = (1 << 1), agora::rtm::AREA_CODE_EU = (1 << 2), agora::rtm::AREA_CODE_AS = (1 << 3), agora::rtm::AREA_CODE_JP = (1 << 4), agora::rtm::AREA_CODE_IN = (1 << 5), agora::rtm::AREA_CODE_GLOB = (0xFFFFFFFF) } |
enum | agora::rtm::SET_RTM_SERVICE_CONTEXT_ERR_CODE { agora::rtm::SET_RTM_SERVICE_CONTEXT_ERR_OK = 0, agora::rtm::SET_RTM_SERVICE_CONTEXT_ERR_FAILURE = 1 } |
函数 | |
AGORA_API const char *AGORA_CALL | agora::rtm::getRtmSdkVersion () |
AGORA_API SET_RTM_SERVICE_CONTEXT_ERR_CODE AGORA_CALL | agora::rtm::setRtmServiceContext (const RtmServiceContext &context) |
setRtmServiceContext 返回的错误码。
枚举值 | |
---|---|
SET_RTM_SERVICE_CONTEXT_ERR_OK | 0: Agora RTM 服务上下文设置成功。 |
SET_RTM_SERVICE_CONTEXT_ERR_FAILURE | 1: Agora RTM 服务上下文设置失败,因为 IRtmService 实例已经存在。你需要调用 release 方法销毁现有的 |
AGORA_API const char* AGORA_CALL agora::rtm::getRtmSdkVersion | ( | ) |
获取 Agora RTM SDK 的版本号。
AGORA_API SET_RTM_SERVICE_CONTEXT_ERR_CODE AGORA_CALL agora::rtm::setRtmServiceContext | ( | const RtmServiceContext & | context | ) |
设置所有 IRtmService 实例的上下文。你在成功调用此方法之后创建的所有 IRtmService 实例都符合此方法设置的上下文。
IRtmservice
实例之前或销毁现有的 IRtmservice
实例之后调用该方法。否则该方法会返回 SET_RTM_SERVICE_CONTEXT_ERR_FAILURE 错误码。context | IRtmservice 实例的上下文,包括 Agora RTM 服务的限定区域。参考 RtmServiceContext。 |