Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHAdjustmentDataMBS class.

PHAdjustmentDataMBS.Constructor(formatIdentifier as string, formatVersion as string, data as Memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Initializes an adjustment object with the specified format and data.

formatIdentifier: A string that uniquely identifies the format of the adjustment data.
formatVersion: A version number for the adjustment data format.
data: A serialized form of whatever information is needed to reconstruct the adjustment.

Returns an initialized adjustment object.

To uniquely identify the adjustments your app makes, use the the formatIdentifier and formatVersion parameters. These parameters help you determine whether and how to interpret the adjustment data when working with an edited asset later. For best results, use reverse-DNS-style identifiers and monotonically increasing version numbers.
For example, in the first version of your app, you might save adjustment data using the identifier com.example.myApp and version 1.0. If a later version of your app adds incompatible information to the adjustment data, you can use the same identifier and increase the version number to 2.0.

Use the data parameter to store whatever information is useful to your app for reconstructing an edit. For example, if your app applies Core Image filters to photos, you can use this parameter to store a serialized property list that describes the filters and their parameters.

Because Photos limits the size of adjustment data, you should keep your edit information short and descriptive. Don’t use image data to describe an edit—instead, save only the minimal information that is needed to recreate the edit.
Your app must provide a non-empty Memoryblock for the data parameter. If you cannot provide relevant data to describe an edit, you may pass data that encodes an NSUUID object.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...