Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHContentEditingOutputMBS class.

PHContentEditingOutputMBS.Constructor(contentEditingInput as PHContentEditingInputMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates an editing output from the specified editing input.

contentEditingInput: An object providing information about the asset to be edited.

Returns an initialized content editing output.

To complete the edit, use the renderedContentURL property to provide the edited asset content. Then, use the PHAssetChangeRequestMBS class or PHContentEditingController protocol to commit the edit to storage.

See also:

PHContentEditingOutputMBS.Constructor(placeholderForCreatedAsset as PHObjectPlaceholderMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates an editing output for use in adding a new asset to the photo library.

placeholderForCreatedAsset: A placeholder object that ties the editing output to a PHAssetChangeRequest object for creating a new asset.

Returns an initialized content editing output.

Use this method if you want to add a new asset to the Photos library with edited content, as opposed to editing the content of an asset after adding it to the library. For example, you might use this option if your app applies filters to photos it captures with the device camera—instead of saving only the filtered image to the Photos library, your app can save both the filtered and the original image, allowing the user to revert to the original image or apply different filters later.

See also:

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


The biggest plugin in space...