CapturePhotoSettings class Null safety
A specification of the features and settings to use for a single photo capture request.
A CapturePhotoSettings instance can include any combination of settings, regardless of whether that combination is valid for a given capture session. When you initiate a capture by passing a photo settings object to the CapturePhotoOutput.capturePhotoWithSettings method, the photo capture output validate s your settings to ensure deterministic behavior. For example, the flashMode setting must specify a value that is present in the photo output’s CapturePhotoOutput.supportedFlashModes list. For detailed validation rules, see each field's description below.
It is illegal to reuse a CapturePhotoSettings instance for multiple
captures. Calling the CapturePhotoOutput.capturePhotoWithSettings method
throws an exception (PlatformException) if the settings object’s
uniqueID value matches that of any previously used settings object. Call
any of the
photoSettingsWith... methods to reset the settings object.
To reuse a specific combination of settings, use the
photoSettingsFromPhotoSettings initializer to create a new, unique
CapturePhotoSettings instance from an existing photo settings object.
- Mixed in types
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
int mode) → Future< void>
- A setting for whether to fire the flash when capturing photos.
) → String
A string representation of this object.
) → Future< int>
- A unique identifier for this photo settings instance.