focusAt method

  1. @override
Future<int> focusAt(
  1. int textureId,
  2. double x,
  3. double y,
  4. int locked,
)
override

Focuses (and meters exposure) at the normalised point (x, y) in 0..1, (0,0) = top-left of the upright preview, and completes when the focus scan ends: 1 = focused, 0 = the scan ended without sharp focus. locked 1 keeps focus there afterwards (vision-camera's adaptiveness: 'locked'); 0 lets continuous AF resume. Throws INVALID_ARGUMENT: for a point outside 0..1 and FOCUS_UNSUPPORTED: on a fixed-focus camera.

Implementation

@override
Future<int> focusAt(int textureId, double x, double y, int locked) =>
    throw UnimplementedError('NitroCamera.focusAt');