enableAudioAEDReport method
@hidden 3.60 for internal use only
@detail api
@author gengjunjie
@brief Enables AED detection. After that, you will receive rtcEngine:onAudioAEDStateUpdate.
@param interval Callback interval, in milliseconds.
+ <= 0: Disable callback.
+ [100, 3000]: Enable callback and set the reporting interval to this value. It is recommended to set the interval to 2000.
+ Invalid interval values, less than 100 set to 100, greater than 3000 set to 3000.
@return
+ 0: Success.
+ <0: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus}.
Implementation
FutureOr<int> enableAudioAEDReport(NSInteger interval) async {
return await nativeCall('enableAudioAEDReport:', [interval]);
}