supportsCaptureSessionPresets method

Future<List<String>> supportsCaptureSessionPresets(
  1. List<String> presets
)

Returns a subset of preset values that indicate whether the receiver can be used in a capture session configured with the given presets.

A CaptureSession instance can be associated with a preset that configures its inputs and outputs to fulfill common use cases. You can use this method to determine if the receiver can be used in a capture session with any of the given presets. For a list of preset constants, see CaptureSessionPreset.

Implementation

Future<List<String>> supportsCaptureSessionPresets(
    List<String> presets) async {
  final List<Object?> supportedPresets = await _channel
      .$supportsCaptureSessionPresets(this, presets) as List<Object?>;
  return supportedPresets.cast<String>();
}