Instance Property

isFlashScene

A Boolean value indicating whether the scene currently being previewed by the camera warrants use of the flash.

Declaration

var isFlashScene: Bool { get }

Discussion

This property’s value changes depending on the scene currently visible to the camera. For example, you might use this property to highlight the flash control in your app’s camera UI, indicating to the user that the scene is dark enough that enabling the flash might be desirable.

If the photo capture output’s supportedFlashModes value is AVCaptureDevice.FlashMode.off, this property’s value is always false.

This property supports Key-value observing.

See Also

Monitoring the Visible Scene

var isStillImageStabilizationScene: Bool

A Boolean value indicating whether the scene currently being previewed by the camera warrants image stabilization.

Deprecated
var photoSettingsForSceneMonitoring: AVCapturePhotoSettings?

A photo settings object that controls how the photo output detects and handles automatic flash and stabilization modes.