RTCRoomEventHandler constructor
RTCRoomEventHandler(- {OnRoomStateChangedType? onRoomStateChanged,
- OnRoomStateChangedType? onStreamStateChanged,
- OnLeaveRoomType? onLeaveRoom,
- OnAVSyncStateChangeType? onAVSyncStateChange,
- OnRoomStatsType? onRoomStats,
- OnLocalStreamStatsType? onLocalStreamStats,
- OnRemoteStreamStatsType? onRemoteStreamStats,
- OnUserJoinedType? onUserJoined,
- OnUserLeaveType? onUserLeave,
- EmptyCallbackType? onTokenWillExpire,
- EmptyCallbackType? onPublishPrivilegeTokenWillExpire,
- EmptyCallbackType? onSubscribePrivilegeTokenWillExpire,
- OnUserPublishStreamType? onUserPublishStream,
- OnUserUnpublishStreamType? onUserUnpublishStream,
- OnUserPublishStreamType? onUserPublishScreen,
- OnUserUnpublishStreamType? onUserUnpublishScreen,
- OnStreamSubscribedType? onStreamSubscribed,
- OnMessageReceivedType? onRoomMessageReceived,
- OnBinaryMessageReceivedType? onRoomBinaryMessageReceived,
- OnMessageReceivedType? onUserMessageReceived,
- OnBinaryMessageReceivedType? onUserBinaryMessageReceived,
- OnMessageSendResultType? onUserMessageSendResult,
- OnRoomMessageSendResultType? onRoomMessageSendResult,
- OnVideoStreamBannedType? onVideoStreamBanned,
- OnAudioStreamBannedType? onAudioStreamBanned,
- OnForwardStreamStateChangedType? onForwardStreamStateChanged,
- OnForwardStreamEventType? onForwardStreamEvent,
- 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;
}