Instance Property

isLivePhotoCaptureSuspended

A Boolean value that specifies whether to suspend, but not disable, Live Photo capture.

Declaration

var isLivePhotoCaptureSuspended: Bool { get set }

Discussion

Use this property to cut short any current Live Photo movie captures in progress—for example, if you suddenly need to do something that you don't want to show up in the Live Photo movie, such as a still photo capture that makes a shutter sound.

By default, this property’s value is false. When you change the value to true, any Live Photo captures in progress are trimmed to the current time. Likewise, when you change this property’s value from true to false, subsequent Live Photo movie captures will not contain any samples earlier than the time you un-suspended Live Photo capture.

Setting this property to true throws an exception (invalidArgumentException) if the isLivePhotoCaptureEnabled property’s value is false.

See Also

Configuring Live Photo Capture

var isLivePhotoCaptureSupported: Bool

A Boolean value indicating whether the capture output currently supports Live Photo capture.

var isLivePhotoCaptureEnabled: Bool

A Boolean value that specifies whether to configure the capture pipeline for Live Photo capture.

var isLivePhotoAutoTrimmingEnabled: Bool

A Boolean value that specifies whether to automatically trim Live Photo movie captures to avoid excessive movement.

var availableLivePhotoVideoCodecTypes: [AVVideoCodecType]

The list of video codecs currently available for capturing Live Photos with the photo output.