ZegoLiveAudioRoomSeatConfig constructor

ZegoLiveAudioRoomSeatConfig({
  1. ZegoLiveAudioRoomLayoutConfig? layout,
  2. Point<double>? topLeft,
  3. Size? containerSize,
  4. ZegoLiveAudioRoomAudioVideoContainerBuilder? containerBuilder,
  5. int takeIndexWhenJoining = -1,
  6. bool canAutoSwitchOnClicked(
    1. int seatIndex
    )?,
  7. int takeIndexWhenAudienceRequesting(
    1. ZegoUIKitUser user
    )?,
  8. bool closeWhenJoining = true,
  9. List<int> hostIndexes = const [0],
  10. Image? openIcon,
  11. Image? closeIcon,
  12. bool showSoundWaveInAudioMode = true,
  13. Color? soundWaveColor,
  14. ZegoAvatarBuilder? avatarBuilder,
  15. bool keepOriginalForeground = false,
  16. ZegoAudioVideoViewForegroundBuilder? foregroundBuilder,
  17. ZegoAudioVideoViewBackgroundBuilder? backgroundBuilder,
  18. Image? hostRoleIcon,
  19. Image? coHostRoleIcon,
  20. Image? microphoneOffIcon,
})

Implementation

ZegoLiveAudioRoomSeatConfig({
  ZegoLiveAudioRoomLayoutConfig? layout,
  this.topLeft,
  this.containerSize,
  this.containerBuilder,
  this.takeIndexWhenJoining = -1,
  this.canAutoSwitchOnClicked,
  this.takeIndexWhenAudienceRequesting,
  this.closeWhenJoining = true,
  this.hostIndexes = const [0],
  this.openIcon,
  this.closeIcon,
  this.showSoundWaveInAudioMode = true,
  this.soundWaveColor,
  this.avatarBuilder,
  this.keepOriginalForeground = false,
  this.foregroundBuilder,
  this.backgroundBuilder,
  this.hostRoleIcon,
  this.coHostRoleIcon,
  this.microphoneOffIcon,
}) : layout = layout ?? ZegoLiveAudioRoomLayoutConfig();