onLocalAudioPropertiesReport method

FutureOr<void> onLocalAudioPropertiesReport(
  1. List audioPropertiesInfos
)
override

@detail callback @author gongzhengduo @brief After calling enableAudioPropertiesReport{@link #RTCEngine#enableAudioPropertiesReport}, you will periodically receive this callback for the instantaneous information about local audio.
Local audio includes the microphone audio, the screen audio captured using RTC SDK internal mechanisms, and locally mixing audio. @param audioPropertiesInfos See LocalAudioPropertiesInfo{@link #LocalAudioPropertiesInfo}.

Implementation

FutureOr<void> onLocalAudioPropertiesReport(
    List<dynamic> audioPropertiesInfos) async {
  if ($instance == null || $instance is! IRTCEngineEventHandler) {
    return;
  }
  return ($instance as IRTCEngineEventHandler)
      .onLocalAudioPropertiesReport
      ?.call(audioPropertiesInfos
          .map((e) => packObject(
              e,
              () => LocalAudioPropertiesInfo.fromMap(
                  LocalAudioPropertiesInfo.deepPackedMapValues(
                      LocalAudioPropertiesInfo.mapMemberToConstructorParams(
                          e)))))
          .toList());
}