enableRangeAudio method

FutureOr<void> enableRangeAudio(
  1. boolean enable
)

@detail api @author chuzhongtao @brief Enable/disable 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 #IRangeAudio#updateReceiveRange} to set audio receiving range. @param enable Whether to enable audio range function:
- true: Enable - false: 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 #IRangeAudio#updatePosition} before this API to set your own position coordinates, and then enable the range audio function.

Implementation

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