copyWith method

RoomOptions copyWith(
  1. {CameraCaptureOptions? defaultCameraCaptureOptions,
  2. ScreenShareCaptureOptions? defaultScreenShareCaptureOptions,
  3. AudioCaptureOptions? defaultAudioCaptureOptions,
  4. VideoPublishOptions? defaultVideoPublishOptions,
  5. AudioPublishOptions? defaultAudioPublishOptions,
  6. AudioOutputOptions? defaultAudioOutputOptions,
  7. bool? adaptiveStream,
  8. bool? dynacast,
  9. bool? stopLocalTrackOnUnpublish,
  10. E2EEOptions? e2eeOptions}
)

Implementation

RoomOptions copyWith({
  CameraCaptureOptions? defaultCameraCaptureOptions,
  ScreenShareCaptureOptions? defaultScreenShareCaptureOptions,
  AudioCaptureOptions? defaultAudioCaptureOptions,
  VideoPublishOptions? defaultVideoPublishOptions,
  AudioPublishOptions? defaultAudioPublishOptions,
  AudioOutputOptions? defaultAudioOutputOptions,
  bool? adaptiveStream,
  bool? dynacast,
  bool? stopLocalTrackOnUnpublish,
  E2EEOptions? e2eeOptions,
}) {
  return RoomOptions(
    defaultCameraCaptureOptions:
        defaultCameraCaptureOptions ?? this.defaultCameraCaptureOptions,
    defaultScreenShareCaptureOptions: defaultScreenShareCaptureOptions ??
        this.defaultScreenShareCaptureOptions,
    defaultAudioCaptureOptions:
        defaultAudioCaptureOptions ?? this.defaultAudioCaptureOptions,
    defaultVideoPublishOptions:
        defaultVideoPublishOptions ?? this.defaultVideoPublishOptions,
    defaultAudioPublishOptions:
        defaultAudioPublishOptions ?? this.defaultAudioPublishOptions,
    defaultAudioOutputOptions:
        defaultAudioOutputOptions ?? this.defaultAudioOutputOptions,
    adaptiveStream: adaptiveStream ?? this.adaptiveStream,
    dynacast: dynacast ?? this.dynacast,
    stopLocalTrackOnUnpublish:
        stopLocalTrackOnUnpublish ?? this.stopLocalTrackOnUnpublish,
    e2eeOptions: e2eeOptions ?? this.e2eeOptions,
  );
}