setResolution method

Future<bool> setResolution(
  1. int width,
  2. int height
)

Sets the capture resolution in pixels.

The value is a target: each platform negotiates the closest supported size with the device (a portrait request maps to the equivalent landscape sensor size on mobile). The actual size is available through getWidth/getHeight and every captureFrame result. Returns false when no camera is open.

Implementation

Future<bool> setResolution(int width, int height) {
  throw UnimplementedError('setResolution() has not been implemented.');
}