Requests asset information for beginning a content editing session.
- iOS 8+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 10.0+
Options affecting how Photos handles an edit session request.
A block that Photos calls when the requested asset editing information is ready.
The block takes the following parameters:
An object that describes the asset for editing and provides methods for loading the image or video content to be edited.
A dictionary providing information about the status of the request. See Editing Request Info Keys for possible keys and values.
In iOS 10.0, tvOS 10.0, and later, Photos always calls this block on the main queue. In earlier releases, Photos calls this block on an arbitrary serial queue—if your block needs to update the UI, dispatch that work to the main queue.
A numeric identifier for the request. Pass this identifier to the
cancel method if you need to cancel the request before it completes.
When you call this method, Photos downloads the asset’s image or video data (if necessary) and prepares it for editing, then calls your
completion block to provide a
PHContent object you use for editing.
To complete the edit, create a
PHContent object from the editing input to provide the edited asset data. Then, commit the edit by posting a change block to the shared
PHPhoto object. In the block, create a
PHAsset object and set its
content property to the editing output you created.