setCameraFocusPosition method

FutureOr<int> setCameraFocusPosition(
  1. float x,
  2. float y
)

@detail api @author zhangzhenyu.samuel @brief Sets the manual focus position for the currently used camera. @param x The x-coordinate of the focus point in range of 0, 1. The upper-left corner of the canvas is set as the origin. @param y The y-coordinate of the focus point in range of 0, 1. The upper-left corner of the canvas is set as the origin. @return - 0: Success. - < 0: Failure. See ReturnStatus{@link #ReturnStatus} for more details. @note - You must call startVideoCapture{@link #RTCEngine#startVideoCapture} to start SDK internal video capturing, and use SDK internal rendering before calling this API. - The focus point setting will be canceled when you move the device. - The camera focus point setting will be invalid after calling stopVideoCapture{@link #RTCEngine#stopVideoCapture} to stop internal capturing.

Implementation

FutureOr<int> setCameraFocusPosition(float x, float y) async {
  return await nativeCall('setCameraFocusPosition', [x, y]);
}