getSupportedPreviewFormats method

Future<List<int>> getSupportedPreviewFormats()

Gets the supported preview formats.

ImageFormat.nv21 is always supported. ImageFormat.yv12 is always supported.

Implementation

Future<List<int>> getSupportedPreviewFormats() async {
  final List<Object?> formats =
      await _channel.$getSupportedPreviewFormats(this) as List<Object?>;
  return formats.cast<int>();
}