init static method
Future<bool?>
init(
- SensorConfig sensorConfig,
- bool enableImageStream,
- bool enablePhysicalButton, {
- CaptureMode captureMode = CaptureMode.photo,
- required ExifPreferences exifPreferences,
- required VideoOptions? videoOptions,
- required bool mirrorFrontCamera,
Implementation
static Future<bool?> init(
SensorConfig sensorConfig,
bool enableImageStream,
bool enablePhysicalButton, {
CaptureMode captureMode = CaptureMode.photo,
required ExifPreferences exifPreferences,
required VideoOptions? videoOptions,
required bool mirrorFrontCamera,
}) async {
return CameraInterface()
.setupCamera(
sensorConfig.sensors.map((e) {
return e.toPigeon();
}).toList(),
sensorConfig.aspectRatio.name.toUpperCase(),
sensorConfig.zoom,
mirrorFrontCamera,
enablePhysicalButton,
sensorConfig.flashMode.name.toUpperCase(),
captureMode.name.toUpperCase(),
enableImageStream,
exifPreferences,
videoOptions,
)
.then((value) => true);
}