Platforms to show: All Mac Windows Linux Cross-Platform
PHChangeRequestMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
You use the PHAssetChangeRequestMBS class to request changes for PHAssetMBS objects. To make changes to assets in the Photos library, create a change request by using the appropriate class method for the change you want to perform.
- Call one of the methods listed in Adding New Assets to create a new asset from an image or video file.
- Call the deleteAssets: method to delete existing assets.
- Call the changeRequestForAsset: method to modify an asset’s content or metadata.
A change request for creating or modifying an asset works like a mutable version of the asset object. Use the change request’s properties to request changes to the corresponding properties of the asset itself.
After Photos runs the change block and calls your completion handler, the asset’s state reflects the changes that you requested in the block.
If you create or use a change request object outside a photo library change block, Photos raises an Objective-C exception. For details on change blocks, see PHPhotoLibraryMBS.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- property Handle as Integer
- method Constructor Private
- shared method available as boolean
Sub classes:
- class PHAssetCollectionChangeRequestMBS
- class PHCollectionListChangeRequestMBS
- class PHProjectChangeRequestMBS
The items on this page are in the following plugins: MBS Mac64bit Plugin.
PHChangeMBS - PHCloudIdentifierMBS