rtmMethods function
Future<void>
rtmMethods({
- required AgoraRtmChannelEventHandler agoraRtmChannelEventHandler,
- required SessionController sessionController,
Function to join the RTM channel and send the user data to everyone inside that channel.
Implementation
Future<void> rtmMethods(
{required AgoraRtmChannelEventHandler agoraRtmChannelEventHandler,
required SessionController sessionController}) async {
await _loginToRtm(sessionController);
await _joinRtmChannel(
agoraRtmChannelEventHandler,
sessionController,
);
await sendUserData(
toChannel: true,
username: sessionController.value.connectionData!.username!,
sessionController: sessionController,
);
}