updatePosition method

FutureOr<int> updatePosition(
  1. Position 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 Position{@link #Position}. @return API call result:
- 0: Success - !0: Failure @note - After calling this API, you should call enableRangeAudio{@link #IRangeAudio#enableRangeAudio} to enable range audio function to actually enjoy the range audio effect.

Implementation

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