startCapture method

  1. @override
Future<bool> startCapture({
  1. int? x,
  2. int? y,
  3. int? width,
  4. int? height,
  5. int fps = 15,
})
override

Implementation

@override
Future<bool> startCapture({int? x, int? y, int? width, int? height, int fps = 15}) async {
  Map<String, dynamic>? data;
  if (x != null && y != null && width != null && height != null) {
    data = {
      'x': x,
      'y': y,
      'width': width,
      'height': height,
    };
  }
  return await methodChannel.invokeMethod('startCapture', data);
}