getRangeAudio method
@detail api
@author luomingkang
@brief Gets range audio instance.
@return API call result:
- ByteRTCRangeAudio: Success. You will get a ByteRTCRangeAudio{@link #ByteRTCRangeAudio} returned from the SDK.
- NULL: Failure. The current SDK does not offer range audio function.
@note The first time this API is called must be between creating a room and actually entering the room. Refer to Range Voice for more information.
Implementation
FutureOr<ByteRTCRangeAudio> getRangeAudio() async {
final result = await nativeCall('getRangeAudio', []);
return packObject(
result,
() =>
ByteRTCRangeAudio(const NativeClassOptions([], disableInit: true)));
}