RTCRoomEventHandler constructor

RTCRoomEventHandler(
  1. {OnRoomStateChangedType? onRoomStateChanged,
  2. OnRoomStateChangedType? onStreamStateChanged,
  3. OnLeaveRoomType? onLeaveRoom,
  4. OnAVSyncStateChangeType? onAVSyncStateChange,
  5. OnRoomStatsType? onRoomStats,
  6. OnLocalStreamStatsType? onLocalStreamStats,
  7. OnRemoteStreamStatsType? onRemoteStreamStats,
  8. OnUserJoinedType? onUserJoined,
  9. OnUserLeaveType? onUserLeave,
  10. EmptyCallbackType? onTokenWillExpire,
  11. EmptyCallbackType? onPublishPrivilegeTokenWillExpire,
  12. EmptyCallbackType? onSubscribePrivilegeTokenWillExpire,
  13. OnUserPublishStreamType? onUserPublishStream,
  14. OnUserUnpublishStreamType? onUserUnpublishStream,
  15. OnUserPublishStreamType? onUserPublishScreen,
  16. OnUserUnpublishStreamType? onUserUnpublishScreen,
  17. OnStreamSubscribedType? onStreamSubscribed,
  18. OnMessageReceivedType? onRoomMessageReceived,
  19. OnBinaryMessageReceivedType? onRoomBinaryMessageReceived,
  20. OnMessageReceivedType? onUserMessageReceived,
  21. OnBinaryMessageReceivedType? onUserBinaryMessageReceived,
  22. OnMessageSendResultType? onUserMessageSendResult,
  23. OnRoomMessageSendResultType? onRoomMessageSendResult,
  24. OnVideoStreamBannedType? onVideoStreamBanned,
  25. OnAudioStreamBannedType? onAudioStreamBanned,
  26. OnForwardStreamStateChangedType? onForwardStreamStateChanged,
  27. OnForwardStreamEventType? onForwardStreamEvent,
  28. OnNetworkQualityType? onNetworkQuality}
)

Implementation

RTCRoomEventHandler({
  this.onRoomStateChanged,
  this.onStreamStateChanged,
  this.onLeaveRoom,
  this.onAVSyncStateChange,
  OnRoomStatsType? onRoomStats,
  OnLocalStreamStatsType? onLocalStreamStats,
  OnRemoteStreamStatsType? onRemoteStreamStats,
  this.onUserJoined,
  this.onUserLeave,
  this.onTokenWillExpire,
  this.onPublishPrivilegeTokenWillExpire,
  this.onSubscribePrivilegeTokenWillExpire,
  this.onUserPublishStream,
  this.onUserUnpublishStream,
  this.onUserPublishScreen,
  this.onUserUnpublishScreen,
  this.onStreamSubscribed,
  this.onRoomMessageReceived,
  this.onRoomBinaryMessageReceived,
  this.onUserMessageReceived,
  this.onUserBinaryMessageReceived,
  this.onUserMessageSendResult,
  this.onRoomMessageSendResult,
  this.onVideoStreamBanned,
  this.onAudioStreamBanned,
  this.onForwardStreamStateChanged,
  this.onForwardStreamEvent,
  OnNetworkQualityType? onNetworkQuality,
}) {
  this.onRoomStats = onRoomStats;
  this.onLocalStreamStats = onLocalStreamStats;
  this.onRemoteStreamStats = onRemoteStreamStats;
  this.onNetworkQuality = onNetworkQuality;
}