setEventHandler method

void setEventHandler(
  1. RtcMessageServiceHandler handler
)

Sets the RtcMessageService event handler.

After setting the RtcMessageService event handler, you can listen for RtcMessageService events and receive the statistics of the corresponding RtcMessageService instance.

Parameter handler The event handler.

Implementation

void setEventHandler(RtcMessageServiceHandler handler) {
  _handler = handler;
}