Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHAssetChangeRequestMBS class.

PHAssetChangeRequestMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The constructor.

PHAssetChangeRequestMBS.revertAssetContentToOriginal

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Request to revert any edits made to the asset’s content.

When an asset has been edited, Photos stores multiple versions of the asset: the original version of the asset as it was first captured or imported, and the input and output of the most recent edit. (You work with asset versions when requesting to edit an asset’s content—see PHContentEditingInputRequestOptions.) Call this method to revert to the original version of the asset, discarding all edits.

This request fails if original content for the asset is not available on the current device (for example, if iCloud Photo Library is enabled and the user has edited the asset on a different device). Use PHAssetResourceManagerMBS to ensure that original asset content is downloaded to the current device before making this request.

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


The biggest plugin in space...