Instance Method

cancel()

Aborts any Live Photo processing in progress.

Declaration

func cancel()

Discussion

This method applies only after you’ve begun processing a Live Photo for display or output with the init(livePhotoEditingInput:) or saveLivePhoto(to:options:completionHandler:) method. After you call this method, Photos calls your completion handler and provides an error with the PHLivePhotoEditingErrorCode.aborted error code.

See Also

Processing an Editing Context’s Live Photo