onActiveSpeaker property

FutureOr<void> Function(String roomId, String userId)? onActiveSpeaker
getter/setter pair

@detail callback @author gongzhengduo @brief 调用 enableAudioPropertiesReport{@link #RTCEngine#enableAudioPropertiesReport} 后,根据设置的 AudioPropertiesConfig.interval,你会周期性地收到此回调,获取房间内的最活跃用户信息。 @param roomId 房间 ID @param uid 最活跃用户(ActiveSpeaker)的用户 ID

Implementation

FutureOr<void> Function(String roomId, String userId)? onActiveSpeaker;