setCameraExposurePosition method
@hidden(macOS)
@detail api
@author zhangzhenyu.samuel
@brief Sets the manual exposure position for the currently used camera.
@param position The position of the exposure point. Setting the upper-left corner of the canvas as the origin, the x in position means the x-coordinate of the exposure point in range of 0, 1, and the y in position means the y-coordinate of the exposure point in range of 0, 1.
@return
- 0: Success.
- < 0: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@note
- You must call startVideoCapture{@link #ByteRTCEngine#startVideoCapture} to start SDK internal video capturing, and use SDK internal rendering before calling this API.
- When you set the exposure point at the center of the canvas, the exposure point setting will be canceled.
- The camera exposure point setting will be invalid after calling stopVideoCapture{@link #ByteRTCEngine#stopVideoCapture} to stop internal capturing.
Implementation
FutureOr<int> setCameraExposurePosition(CGPoint position) async {
return await nativeCall('setCameraExposurePosition:', [position]);
}