Platforms to show: All Mac Windows Linux Cross-Platform

PHAssetCollectionChangeRequestMBS class

Super class: PHChangeRequestMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A request to create, delete, or modify a Photos asset collection, for use in a photo library change block.

You use the PHAssetCollectionChangeRequestMBS class to request changes for PHAssetCollectionMBS objects. To make changes to asset collections (such as user-created albums) in the Photos library, create a change request using the appropriate class method for the change you want to perform.

  • Call the creationRequestForAssetCollectionWithTitle: method to create a new asset collection.
  • Call the deleteAssetCollections: method to delete existing asset collections.
  • Call the changeRequestForAssetCollection: or changeRequestForAssetCollection:assets: method to modify a collection’s metadata or list of member assets.

Before creating a change request, use the canPerformEditOperation: method to verify that the collection allows the edit operation you’re requesting. If you attempt to perform an unsupported edit operation, Photos throws an exception.
A change request for creating or modifying an asset collection works like a mutable version of the asset collection object. Use the change request’s properties and instance methods to request changes to the asset collection itself.

After Photos runs the change block and calls your completion handler, the asset collection’s state reflects the changes 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.
Subclass of the PHChangeRequestMBS class.

Super class PHChangeRequestMBS

This class has no sub classes.


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


PHAssetChangeRequestMBS   -   PHAssetCollectionMBS


The biggest plugin in space...