LeaveChannelOptions

Options for leaving a channel.

class LeaveChannelOptions {
  const LeaveChannelOptions(
      {this.stopAudioMixing, this.stopAllEffect, this.stopMicrophoneRecording});

  @JsonKey(name: 'stopAudioMixing')
  final bool? stopAudioMixing;
  @JsonKey(name: 'stopAllEffect')
  final bool? stopAllEffect;
  @JsonKey(name: 'stopMicrophoneRecording')
  final bool? stopMicrophoneRecording;
  factory LeaveChannelOptions.fromJson(Map<String, dynamic> json) =>
      _$LeaveChannelOptionsFromJson(json);
  Map<String, dynamic> toJson() => _$LeaveChannelOptionsToJson(this);
}

Properties

stopAudioMixing
Whether to stop playing music files and audio mixing when leaving the channel:
  • true: (default) Stop playing music files and audio mixing.
  • false: Do not stop playing music files and audio mixing.
stopAllEffect
Whether to stop playing sound effects when leaving the channel:
  • true: (default) Stop playing sound effects.
  • false: Do not stop playing sound effects.
stopMicrophoneRecording
Whether to stop microphone capture when leaving the channel:
  • true: (default) Stop microphone capture.
  • false: Do not stop microphone capture.