文档中心
云信令(原实时消息)
API 参考
AgoraRTM | Agora RTM JavaScript SDK API 参考
Agora RTM Web API Reference
Variables
Const AreaCode
AreaCode: keyof typeof AreaCode
Const BUILD
BUILD: string
Const ConnectionChangeReason
ConnectionChangeReason: keyof typeof ConnectionChangeReason
Const ConnectionState
ConnectionState: keyof typeof ConnectionState
Const END_CALL_PREFIX
END_CALL_PREFIX: string
Const LOG_FILTER_ERROR
LOG_FILTER_ERROR: LogFilterType
Const LOG_FILTER_INFO
LOG_FILTER_INFO: LogFilterType
Const LOG_FILTER_OFF
LOG_FILTER_OFF: LogFilterType
Const LOG_FILTER_WARNING
LOG_FILTER_WARNING: LogFilterType
Const LocalInvitationFailureReason
LocalInvitationFailureReason: keyof typeof LocalInvitationFailureReason
Const LocalInvitationState
LocalInvitationState: keyof typeof LocalInvitationState
Const MessageType
MessageType: keyof typeof MessageType
Const PeerOnlineState
PeerOnlineState: keyof typeof PeerOnlineState
Const PeerSubscriptionOption
PeerSubscriptionOption: keyof typeof PeerSubscriptionOption
Const RemoteInvitationFailureReason
RemoteInvitationFailureReason: keyof typeof RemoteInvitationFailureReason
Const RemoteInvitationState
RemoteInvitationState: keyof typeof RemoteInvitationState
Const VERSION
VERSION: string
Functions
setArea
- setArea(areaConfig: object): void
AgoraRTM 是 Agora RTM SDK 的导出模块。
使用
<script>
标签引入 SDK 时,产生名为AgoraRTM
的全局变量,该变量含有该模块的所有成员。直接在 HTML 中引入
<script src="agora-rtm-sdk-0.9.1.js"></script>
。Note:
此处文件名
agora-rtm-sdk-0.9.1.js
中的版本号0.9.1
仅供参考,安装时请使用最新版的 SDK 和链接地址。