onVideoDenoiseModeChanged method
@hidden not available @detail callback @author Yujianli @brief When the state of the video noise reduction mode changes, this callback will return the real state of the mode and the reasons for the changes. @param mode Video noise reduction mode. Refer to VideoDenoiseMode{@link #VideoDenoiseMode} for more details. @param reason Video noise reduction mode change reason. Refer to VideoDenoiseModeChangedReason{@link #VideoDenoiseModeChangedReason} for more details.
Implementation
FutureOr<void> onVideoDenoiseModeChanged(dynamic mode, dynamic reason) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onVideoDenoiseModeChanged
?.call(
t_VideoDenoiseMode.android_to_code($p_a.VideoDenoiseMode.values
.firstWhere((t) => t.$value == mode || t.name == mode)),
t_VideoDenoiseModeChangedReason.android_to_code($p_a
.VideoDenoiseModeChangedReason.values
.firstWhere((t) => t.$value == reason || t.name == reason)));
}