setCameraFocusPositionInPreview method

  1. @override
Future<void> setCameraFocusPositionInPreview(
  1. double positionX,
  2. double positionY
)

Sets the camera manual focus position. A successful method call triggers the RtcEngineEventHandler.cameraFocusAreaChanged callback on the local client.

Parameter positionX The horizontal coordinate of the touch point in the view.

Parameter positionY The vertical coordinate of the touch point in the view.

Implementation

@override
Future<void> setCameraFocusPositionInPreview(
    double positionX, double positionY) {
  return _invokeMethod('setCameraFocusPositionInPreview',
      {'positionX': positionX, 'positionY': positionY});
}