setCameraFocusPositionInPreview method

Future<bool> setCameraFocusPositionInPreview(
  1. double x,
  2. double y
)

Implementation

Future<bool> setCameraFocusPositionInPreview(double x, double y) async {
  Map<String, dynamic> arguments = {
    "x": x,
    "y": y,
  };
  bool? success = await channel.invokeMethod("setCameraFocusPositionInPreview", arguments);
  return success ?? false;
}