copyWith method
AgoraChannelData
copyWith({
- ChannelProfileType? channelProfileType,
- ClientRoleType? clientRoleType,
- VideoEncoderConfiguration? videoEncoderConfiguration,
- bool? setCameraAutoFocusFaceModeEnabled,
- bool? enableDualStreamMode,
- StreamFallbackOptions? localPublishFallbackOption,
- StreamFallbackOptions? remoteSubscribeFallbackOption,
- AudioProfileType? audioProfileType,
- AudioScenarioType? audioScenarioType,
- BeautyOptions? setBeautyEffectOptions,
- bool? setCameraTorchOn,
- bool? muteAllRemoteVideoStreams,
- bool? muteAllRemoteAudioStreams,
- bool? isActiveSpeakerDisabled,
Implementation
AgoraChannelData copyWith({
final ChannelProfileType? channelProfileType,
ClientRoleType? clientRoleType,
VideoEncoderConfiguration? videoEncoderConfiguration,
bool? setCameraAutoFocusFaceModeEnabled,
bool? enableDualStreamMode,
StreamFallbackOptions? localPublishFallbackOption,
StreamFallbackOptions? remoteSubscribeFallbackOption,
AudioProfileType? audioProfileType,
AudioScenarioType? audioScenarioType,
BeautyOptions? setBeautyEffectOptions,
bool? setCameraTorchOn,
bool? muteAllRemoteVideoStreams,
bool? muteAllRemoteAudioStreams,
bool? isActiveSpeakerDisabled,
}) {
return AgoraChannelData(
channelProfileType: channelProfileType ?? this.channelProfileType,
clientRoleType: clientRoleType ?? this.clientRoleType,
videoEncoderConfiguration:
videoEncoderConfiguration ?? this.videoEncoderConfiguration,
setCameraAutoFocusFaceModeEnabled: setCameraAutoFocusFaceModeEnabled ??
this.setCameraAutoFocusFaceModeEnabled,
enableDualStreamMode: enableDualStreamMode ?? this.enableDualStreamMode,
localPublishFallbackOption:
localPublishFallbackOption ?? this.localPublishFallbackOption,
remoteSubscribeFallbackOption:
remoteSubscribeFallbackOption ?? this.remoteSubscribeFallbackOption,
audioProfileType: audioProfileType ?? this.audioProfileType,
audioScenarioType: audioScenarioType ?? this.audioScenarioType,
setBeautyEffectOptions:
setBeautyEffectOptions ?? this.setBeautyEffectOptions,
setCameraTorchOn: setCameraTorchOn ?? this.setCameraTorchOn,
muteAllRemoteAudioStreams:
muteAllRemoteAudioStreams ?? this.muteAllRemoteAudioStreams,
muteAllRemoteVideoStreams:
muteAllRemoteVideoStreams ?? this.muteAllRemoteVideoStreams,
isActiveSpeakerDisabled:
isActiveSpeakerDisabled ?? this.isActiveSpeakerDisabled,
);
}