Platforms to show: All Mac Windows Linux Cross-Platform
PHAdjustmentDataMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
When a user edits an asset, Photos saves a PHAdjustmentData object along with the modified image or video data. This object provides an application-defined “recipe” you can use to reconstruct the edit. For example, if your app applies filters to a photo, you might might create adjustment data that identifies which filters the user picked, the parameters for each, and the order to apply the filters in. Later, the user can resume working with those filters and parameters by using your app or another app that understands your adjustment data format. When iCloud Photos is enabled, a user can revert or resume edits made on a different device.
You work with adjustment data when editing an asset, using either the requestContentEditingInputWithOptions method or a photo extension view controller that implements the PHContentEditingController protocol.
- When you begin an edit (through a PHContentEditingInputMBS object), examine the editing input’s adjustmentData property to decide whether the last edit made to the asset is compatible with your app. If so, you can allow the user to resume working with that edit. If not, you can make further edits to the last saved version of the photo.
- When you commit an edit (through a PHContentEditingOutputMBS object), provide a new adjustment whose data represents the changes your app made.
For each asset, Photos stores only one PHAdjustmentDataMBS object, representing the most recent edit made to the asset’s content.
- 4 properties
- property data as Memoryblock
- property formatIdentifier as String
- property formatVersion as String
- property Handle as Integer
- method Constructor(formatIdentifier as string, formatVersion as string, data as Memoryblock)
- shared method available as boolean
This class has no sub classes.
Some properties using for this class:
- PHContentEditingInputMBS.adjustmentData as PHAdjustmentDataMBS
- PHContentEditingOutputMBS.adjustmentData as PHAdjustmentDataMBS
The items on this page are in the following plugins: MBS Mac64bit Plugin.
PermissionsMBS - PHAssetChangeRequestMBS