onActiveSpeaker method
@detail callback @author gongzhengduo @brief After calling enableAudioPropertiesReport{@link #RTCEngine#enableAudioPropertiesReport}, you will periodically receive this callback for the active speaker information. @param roomId Room ID. @param uid The user ID of the active speaker.
Implementation
FutureOr<void> onActiveSpeaker(dynamic roomId, dynamic uid) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onActiveSpeaker
?.call(roomId.toString(), uid.toString());
}