createEvents method

void createEvents(
  1. AgoraRtmChannelEventHandler agoraRtmChannelEventHandler,
  2. AgoraRtcEventHandlers agoraEventHandlers
)

Function to trigger all the AgoraRtcEventHandlers.

Implementation

void createEvents(
  AgoraRtmChannelEventHandler agoraRtmChannelEventHandler,
  AgoraRtcEventHandlers agoraEventHandlers,
) async {
  value.engine?.registerEventHandler(
    await rtcEngineEventHandler(
      agoraEventHandlers,
      agoraRtmChannelEventHandler,
      this,
    ),
  );
}