IoT SDK for Linux v1.8.0
Data Fields
agora_rtm_handler_t Struct Reference

#include <agora_rtc_api.h>

Data Fields

void(* on_rtm_data )(const char *rtm_uid, const void *msg, size_t msg_len)
 
void(* on_rtm_event )(const char *rtm_uid, rtm_event_type_e event_type, rtm_err_code_e err_code)
 
void(* on_send_rtm_data_result )(uint32_t msg_id, rtm_err_code_e error_code)
 

Detailed Description

RTM event handler.

Field Documentation

◆ on_rtm_data

void(* on_rtm_data) (const char *rtm_uid, const void *msg, size_t msg_len)

Occurs when the local user receives an RTM message.

Parameters
[in]rtm_uidThe remote RTM user ID who sends the RTM message.
[in]msgThe RTM message that the local user receives.
[in]msg_lenLength of the RTM message.

◆ on_rtm_event

void(* on_rtm_event) (const char *rtm_uid, rtm_event_type_e event_type, rtm_err_code_e err_code)

Occurs when an RTM event occurs.

Parameters
[in]rtm_uidRTM user ID.
[in]event_typeEvent type.
[in]event_infoEvent information.

◆ on_send_rtm_data_result

void(* on_send_rtm_data_result) (uint32_t msg_id, rtm_err_code_e error_code)

Reports the result of the agora_rtc_send_rtm_data method call.

Parameters
[in]msg_idRTM message ID.
[in]error_codeError code number.
  • 0 : Success.
  • 1 : Failure.

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