IoT SDK for Android v1.8.0
Classes | Public Member Functions | List of all members
io.agora.rtc.AgoraRtmEvents Interface Reference


class  RtmEventType

Public Member Functions

void onRtmData (String rtm_uid, byte[] data)
void onRtmEvent (String rtm_uid, int event_type, int err_code)
void onSendRtmDataResult (int message_id, int err_code)

Detailed Description

RTM event handler.

Member Function Documentation

◆ onRtmData()

void io.agora.rtc.AgoraRtmEvents.onRtmData ( String  rtm_uid,
byte[]  data 

Occurs when the local user receives an RTM message.

rtm_uidThe remote RTM user ID who sends the RTM message.
dataThe RTM message that the local user receives.

◆ onRtmEvent()

void io.agora.rtc.AgoraRtmEvents.onRtmEvent ( String  rtm_uid,
int  event_type,
int  err_code 

Occurs when an RTM event occurs.

rtm_uidRTM user ID.
event_typeEvent type. See AgoraRtmEvents.
err_codeThe error code. See RtmErrCode.

◆ onSendRtmDataResult()

void io.agora.rtc.AgoraRtmEvents.onSendRtmDataResult ( int  message_id,
int  err_code 

Reports the result of the sendRtm method call.

message_idRTM message ID.
err_codeError code number. See RtmErrCode.

The documentation for this interface was generated from the following file: