io.agora.rtc.AgoraRtmEvents接口 参考
云信令 (原 RTM) 事件。
成员函数说明
onRtmData()
void io.agora.rtc.AgoraRtmEvents.onRtmData | ( | String | rtm_uid, |
byte[] | data | ||
) |
云信令 (原 RTM) 消息回调。
参数
参数名 | 描述 |
---|---|
rtm_uid | 发送消息的云信令 (原 RTM) 用户 ID。 |
data | 收到的消息内容。 |
onRtmEvent()
void io.agora.rtc.AgoraRtmEvents.onRtmEvent | ( | String | rtm_uid, |
int | event_type, | ||
int | err_code | ||
) |
云信令 (原 RTM) 事件回调。
参数
参数名 | 描述 |
---|---|
rtm_uid | 云信令 (原 RTM) 用户 ID。 |
event_type | 事件类型。详见 AgoraRtmEvents 。 |
err_code | 错误码。详见 RtmErrCode 。 |
onSendRtmDataResult()
void io.agora.rtc.AgoraRtmEvents.onSendRtmDataResult | ( | String | rtm_uid, |
int | messageId, | ||
int | state | ||
) |
sendRtm
方法调用结果回调。
参数
参数名 | 描述 |
---|---|
rtm_uid | RTM 用户 ID。 |
messageId | 消息 ID。 |
state | RTM 消息的发送状态。详见 RtmMsgState 。 |