#include <IAgoraRtmService.h>
◆ ~IRtmServiceEventHandler()
| virtual agora::rtm::IRtmServiceEventHandler::~IRtmServiceEventHandler |
( |
| ) |
|
|
inlinevirtual |
◆ onLoginSuccess()
| virtual void agora::rtm::IRtmServiceEventHandler::onLoginSuccess |
( |
| ) |
|
|
inlinevirtual |
Occurs when the user successfully logs in the RTM service.
◆ onLoginFailure()
| virtual void agora::rtm::IRtmServiceEventHandler::onLoginFailure |
( |
LOGIN_ERR_CODE | errorCode | ) |
|
|
inlinevirtual |
Occurs when the user fails to log in the RTM service.
- Parameters
-
◆ onLogout()
| virtual void agora::rtm::IRtmServiceEventHandler::onLogout |
( |
| ) |
|
|
inlinevirtual |
Occurs when the user successfully logs out of the RTM service.
◆ onConnectionStateChanged()
| virtual void agora::rtm::IRtmServiceEventHandler::onConnectionStateChanged |
( |
CONNECTION_STATE | state | ) |
|
|
inlinevirtual |
Occurs when the connection state of the local user has changed.
- Parameters
-
◆ onSendMessageState()
| virtual void agora::rtm::IRtmServiceEventHandler::onSendMessageState |
( |
int64_t | messageId, |
|
|
PEER_MESSAGE_STATE | state ) |
|
inlinevirtual |
Reports the state of sending a message.
- Parameters
-
◆ onMessageReceivedFromPeer()
| virtual void agora::rtm::IRtmServiceEventHandler::onMessageReceivedFromPeer |
( |
const char * | peerId, |
|
|
const IMessage * | message ) |
|
inlinevirtual |
Occurs when the local user receives a message from a remote user.
- Parameters
-
| peerId | ID of the remote user that sends the message. |
| message | The pointer to the message: IMessage. |