updatePosition method

FutureOr<int> updatePosition(
  1. ByteRTCPosition pos
)

@detail api @author chuzhongtao @brief Updates the coordinate of the local user's position in the rectangular coordinate system in the current room. @param pos 3D coordinate values, the default value is 0, 0, 0, see ByteRTCPosition{@link #ByteRTCPosition}. @return API call result:
- 0: Success - !0: Failure @note After calling this API, you should call enableRangeAudio:{@link #ByteRTCRangeAudio#enableRangeAudio} to enable range audio function to actually enjoy the range audio effect.

Implementation

FutureOr<int> updatePosition(ByteRTCPosition pos) async {
  return await nativeCall('updatePosition:', [pos]);
}