Contents

isLivePhotoCaptureSuspended

A Boolean value that indicates whether Live Photo capture is currently in a suspended state.

Declaration

var isLivePhotoCaptureSuspended: Bool { get set }

Discussion

By default, this property’s value is false. Set this value to true to stop any current Live Photo movie captures in progress. Doing this prevents recording additional actions in the Live Photo movie. For example, if you want to capture a still photo that makes a shutter sound, you can prevent recording that action.

When you change this value to true, the system trims any Live Photo movie captures in progress to the current time. Likewise, when you change this value from true to false, subsequent Live Photo movie captures won’t contain any earlier recordings.

By default, this property resets to false when the AVCaptureSession stops. You can prevent this behavior by setting preservesLivePhotoCaptureSuspendedOnSessionStop to true before stopping the session.

See Also

Configuring Live Photo capture