setEventHandler abstract method

void setEventHandler(
  1. RtcChannelEventHandler handler
)

Sets the event handler for the RtcChannel object. After setting the channel event handler, you can listen for channel events and receive the statistics of the corresponding RtcChannel object.

Param handler The event handler for the RtcChannel object.

return 0(ERR_OK): Success. < 0: Failure.

Implementation

void setEventHandler(RtcChannelEventHandler handler);