setEventHandler method

void setEventHandler(
  1. RtcEngineEventHandler handler
)

Sets the engine event handler.

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

Parameter handler The event handler.

Implementation

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