Contents

PHContentEditingInputRequestID

An identifier for an asset content editing session.

Declaration

typealias PHContentEditingInputRequestID = Int

Discussion

To begin editing the content of an asset, call the requestContentEditingInput(with:completionHandler:) method to retrieve a PHContentEditingInput object that provides data for editing. This method asynchronously prepares an editing input and calls your completion handler block when the editing input is ready. To abandon editing before Photos calls the completion handler, call the cancelContentEditingInputRequest(_:) method, passing the PHContentEditingInputRequestID you received when requesting an edit.

See Also

Editing an Asset