Instance Method


Asks your extension whether it can continue working with the most recent edit that was made to an asset.



- (BOOL)canHandleAdjustmentData:(PHAdjustmentData *)adjustmentData;



Use this object to determine whether your extension can work with past edits made to the asset. Typically, you make this decision based on the adjustment data’s formatIdentifier and formatVersion properties.

Return Value

YES if your extension supports the adjustment data; otherwise, NO.


When an asset is edited, Photos stores a PHAdjustmentData object that is provided by the app (or by the extension) that edited the asset. This object provides whatever information is necessary to reconstruct the edited asset using the previous version of the asset’s content. When a user attempts to edit an asset with your extension, Photos calls this block to learn whether your extension can handle the asset’s past adjustments.

If you return YES from this method, Photos provides the previous asset version for editing. Your extension uses the adjustment data to alter, add to, or reapply the last edit. (For example, an adjustment data may describe filters applied to a photo. Your extension reapplies those filters and allows the user to change filter parameters, add new filters, or remove filters.)

If you return NO from this method, Photos provides the most recent asset data—the rendered output of the previous edit—for editing.

For more information, see Working with Asset Versions and Adjustments.