getRangeAudio method
@detail api
@author luomingkang
@brief Gets the range audio instance of the game room.
@return API call result:
- IRangeAudio: Success. You will get an IRangeAudio{@link #IRangeAudio} 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 you create a room and you actually enter the room. Refer to Range Voice for more information.
Implementation
FutureOr<IRangeAudio> getRangeAudio() async {
final result = await nativeCall('getRangeAudio', []);
return packObject(result,
() => IRangeAudio(const NativeClassOptions([], disableInit: true)));
}