enableRangeAudio method

FutureOr<void> enableRangeAudio(
  1. BOOL enable
)

@detail api @author chuzhongtao @brief Enables/disables the range audio function.
Range audio means that within a certain range in a same RTC room, the audio volume of the remote user received by the local user will be amplified/attenuated as the remote user moves closer/away. The audio coming from out of the range cannot be heard. See updateReceiveRange:{@link #ByteRTCRangeAudio#updateReceiveRange} to set audio receiving range. @param enable Whether to enable audio range function:
- YES: Enable - NO: Disable(Defaulting setting) @note You can call this API anytime before or after entering a room. To ensure a smooth switch to the range audio mode after entering the room, you need to call updatePosition:{@link #ByteRTCRangeAudio#updatePosition} before this API to set your own position coordinates, and then enable the range audio function.

Implementation

FutureOr<void> enableRangeAudio(BOOL enable) async {
  return await nativeCall('enableRangeAudio:', [enable]);
}