Public Member Functions | |
void | onConnectionStateChanged (int state, int reason) |
void | onMessageReceived (RtmMessage message, String peerId) |
Callbacks for the Agora RTM client methods.
void io.agora.rtm.RtmClientListener.onConnectionStateChanged | ( | int | state, |
int | reason | ||
) |
Occurs when the connection state between the SDK and the Agora RTM system changes.
state | The new connection state. See ConnectionState. |
reason | The reason for the connection state change. See ConnectionChangeReason. |
void io.agora.rtm.RtmClientListener.onMessageReceived | ( | RtmMessage | message, |
String | peerId | ||
) |
Occurs when the local user receives a peer-to-peer message from a remote user.
message | The received message. |
peerId | The user ID of the sender. |