TUIRoomObserver constructor

TUIRoomObserver({
  1. OnError? onError,
  2. OnKickedOffLine? onKickedOffLine,
  3. OnUserSigExpired? onUserSigExpired,
  4. OnRoomNameChanged? onRoomNameChanged,
  5. OnAllUserMicrophoneDisableChanged? onAllUserMicrophoneDisableChanged,
  6. OnAllUserCameraDisableChanged? onAllUserCameraDisableChanged,
  7. OnSendMessageForAllUserDisableChanged? onSendMessageForAllUserDisableChanged,
  8. OnRoomDismissed? onRoomDismissed,
  9. OnKickedOutOfRoom? onKickedOutOfRoom,
  10. OnRoomSpeechModeChanged? onRoomSpeechModeChanged,
  11. OnRemoteUserEnterRoom? onRemoteUserEnterRoom,
  12. OnRemoteUserLeaveRoom? onRemoteUserLeaveRoom,
  13. OnUserRoleChanged? onUserRoleChanged,
  14. OnUserVideoStateChanged? onUserVideoStateChanged,
  15. OnUserAudioStateChanged? onUserAudioStateChanged,
  16. OnUserVoiceVolumeChanged? onUserVoiceVolumeChanged,
  17. OnSendMessageForUserDisableChanged? onSendMessageForUserDisableChanged,
  18. OnUserNetworkQualityChanged? onUserNetworkQualityChanged,
  19. OnUserScreenCaptureStopped? onUserScreenCaptureStopped,
  20. OnRoomMaxSeatCountChanged? onRoomMaxSeatCountChanged,
  21. OnSeatListChanged? onSeatListChanged,
  22. OnKickedOffSeat? onKickedOffSeat,
  23. OnRequestReceived? onRequestReceived,
  24. OnRequestCancelled? onRequestCancelled,
  25. OnReceiveTextMessage? onReceiveTextMessage,
  26. OnReceiveCustomMessage? onReceiveCustomMessage,
})

Implementation

TUIRoomObserver(
    {OnError? onError,
    OnKickedOffLine? onKickedOffLine,
    OnUserSigExpired? onUserSigExpired,
    OnRoomNameChanged? onRoomNameChanged,
    OnAllUserMicrophoneDisableChanged? onAllUserMicrophoneDisableChanged,
    OnAllUserCameraDisableChanged? onAllUserCameraDisableChanged,
    OnSendMessageForAllUserDisableChanged?
        onSendMessageForAllUserDisableChanged,
    OnRoomDismissed? onRoomDismissed,
    OnKickedOutOfRoom? onKickedOutOfRoom,
    OnRoomSpeechModeChanged? onRoomSpeechModeChanged,
    OnRemoteUserEnterRoom? onRemoteUserEnterRoom,
    OnRemoteUserLeaveRoom? onRemoteUserLeaveRoom,
    OnUserRoleChanged? onUserRoleChanged,
    OnUserVideoStateChanged? onUserVideoStateChanged,
    OnUserAudioStateChanged? onUserAudioStateChanged,
    OnUserVoiceVolumeChanged? onUserVoiceVolumeChanged,
    OnSendMessageForUserDisableChanged? onSendMessageForUserDisableChanged,
    OnUserNetworkQualityChanged? onUserNetworkQualityChanged,
    OnUserScreenCaptureStopped? onUserScreenCaptureStopped,
    OnRoomMaxSeatCountChanged? onRoomMaxSeatCountChanged,
    OnSeatListChanged? onSeatListChanged,
    OnKickedOffSeat? onKickedOffSeat,
    OnRequestReceived? onRequestReceived,
    OnRequestCancelled? onRequestCancelled,
    OnReceiveTextMessage? onReceiveTextMessage,
    OnReceiveCustomMessage? onReceiveCustomMessage}) {
  if (onError != null) {
    this.onError = onError;
  }
  if (onKickedOffLine != null) {
    this.onKickedOffLine = onKickedOffLine;
  }
  if (onUserSigExpired != null) {
    this.onUserSigExpired = onUserSigExpired;
  }
  if (onRoomNameChanged != null) {
    this.onRoomNameChanged = onRoomNameChanged;
  }
  if (onAllUserMicrophoneDisableChanged != null) {
    this.onAllUserMicrophoneDisableChanged =
        onAllUserMicrophoneDisableChanged;
  }
  if (onAllUserCameraDisableChanged != null) {
    this.onAllUserCameraDisableChanged = onAllUserCameraDisableChanged;
  }
  if (onSendMessageForAllUserDisableChanged != null) {
    this.onSendMessageForAllUserDisableChanged =
        onSendMessageForAllUserDisableChanged;
  }
  if (onRoomDismissed != null) {
    this.onRoomDismissed = onRoomDismissed;
  }
  if (onKickedOutOfRoom != null) {
    this.onKickedOutOfRoom = onKickedOutOfRoom;
  }
  if (onRoomSpeechModeChanged != null) {
    this.onRoomSpeechModeChanged = onRoomSpeechModeChanged;
  }
  if (onRemoteUserEnterRoom != null) {
    this.onRemoteUserEnterRoom = onRemoteUserEnterRoom;
  }
  if (onRemoteUserLeaveRoom != null) {
    this.onRemoteUserLeaveRoom = onRemoteUserLeaveRoom;
  }
  if (onUserRoleChanged != null) {
    this.onUserRoleChanged = onUserRoleChanged;
  }
  if (onUserVideoStateChanged != null) {
    this.onUserVideoStateChanged = onUserVideoStateChanged;
  }
  if (onUserAudioStateChanged != null) {
    this.onUserAudioStateChanged = onUserAudioStateChanged;
  }
  if (onUserVoiceVolumeChanged != null) {
    this.onUserVoiceVolumeChanged = onUserVoiceVolumeChanged;
  }
  if (onSendMessageForUserDisableChanged != null) {
    this.onSendMessageForUserDisableChanged =
        onSendMessageForUserDisableChanged;
  }
  if (onUserNetworkQualityChanged != null) {
    this.onUserNetworkQualityChanged = onUserNetworkQualityChanged;
  }
  if (onUserScreenCaptureStopped != null) {
    this.onUserScreenCaptureStopped = onUserScreenCaptureStopped;
  }
  if (onRoomMaxSeatCountChanged != null) {
    this.onRoomMaxSeatCountChanged = onRoomMaxSeatCountChanged;
  }
  if (onSeatListChanged != null) {
    this.onSeatListChanged = onSeatListChanged;
  }
  if (onKickedOffSeat != null) {
    this.onKickedOffSeat = onKickedOffSeat;
  }
  if (onRequestReceived != null) {
    this.onRequestReceived = onRequestReceived;
  }
  if (onRequestCancelled != null) {
    this.onRequestCancelled = onRequestCancelled;
  }
  if (onReceiveTextMessage != null) {
    this.onReceiveTextMessage = onReceiveTextMessage;
  }
  if (onReceiveCustomMessage != null) {
    this.onReceiveCustomMessage = onReceiveCustomMessage;
  }
}