TUIRoomObserver constructor

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

Implementation

TUIRoomObserver(
    {OnError? onError,
    OnKickedOffLine? onKickedOffLine,
    OnUserSigExpired? onUserSigExpired,
    OnRoomNameChanged? onRoomNameChanged,
    OnAllUserMicrophoneDisableChanged? onAllUserMicrophoneDisableChanged,
    OnAllUserCameraDisableChanged? onAllUserCameraDisableChanged,
    OnScreenShareForAllUserDisableChanged?
        onScreenShareForAllUserDisableChanged,
    OnSendMessageForAllUserDisableChanged?
        onSendMessageForAllUserDisableChanged,
    OnRoomDismissed? onRoomDismissed,
    OnKickedOutOfRoom? onKickedOutOfRoom,
    OnRoomSeatModeChanged? onRoomSeatModeChanged,
    OnRoomUserCountChanged? onRoomUserCountChanged,
    OnRemoteUserEnterRoom? onRemoteUserEnterRoom,
    OnRemoteUserLeaveRoom? onRemoteUserLeaveRoom,
    OnUserRoleChanged? onUserRoleChanged,
    OnUserInfoChanged? onUserInfoChanged,
    OnUserVideoStateChanged? onUserVideoStateChanged,
    OnUserAudioStateChanged? onUserAudioStateChanged,
    OnUserVoiceVolumeChanged? onUserVoiceVolumeChanged,
    OnSendMessageForUserDisableChanged? onSendMessageForUserDisableChanged,
    OnUserNetworkQualityChanged? onUserNetworkQualityChanged,
    OnUserScreenCaptureStopped? onUserScreenCaptureStopped,
    OnRoomMaxSeatCountChanged? onRoomMaxSeatCountChanged,
    OnSeatListChanged? onSeatListChanged,
    OnKickedOffSeat? onKickedOffSeat,
    OnRequestReceived? onRequestReceived,
    OnRequestCancelled? onRequestCancelled,
    OnRequestProcessed? onRequestProcessed}) {
  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 (onScreenShareForAllUserDisableChanged != null) {
    this.onScreenShareForAllUserDisableChanged =
        onScreenShareForAllUserDisableChanged;
  }
  if (onSendMessageForAllUserDisableChanged != null) {
    this.onSendMessageForAllUserDisableChanged =
        onSendMessageForAllUserDisableChanged;
  }
  if (onRoomDismissed != null) {
    this.onRoomDismissed = onRoomDismissed;
  }
  if (onKickedOutOfRoom != null) {
    this.onKickedOutOfRoom = onKickedOutOfRoom;
  }
  if (onRoomSeatModeChanged != null) {
    this.onRoomSeatModeChanged = onRoomSeatModeChanged;
  }
  if (onRoomUserCountChanged != null) {
    this.onRoomUserCountChanged = onRoomUserCountChanged;
  }
  if (onRemoteUserEnterRoom != null) {
    this.onRemoteUserEnterRoom = onRemoteUserEnterRoom;
  }
  if (onRemoteUserLeaveRoom != null) {
    this.onRemoteUserLeaveRoom = onRemoteUserLeaveRoom;
  }
  if (onUserRoleChanged != null) {
    this.onUserRoleChanged = onUserRoleChanged;
  }
  if (onUserInfoChanged != null) {
    this.onUserInfoChanged = onUserInfoChanged;
  }
  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 (onRequestProcessed != null) {
    this.onRequestProcessed = onRequestProcessed;
  }
}