Platforms to show: All Mac Windows Linux Cross-Platform

PHCollectionListChangeRequestMBS 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 collection list, for use in a photo library change block.

You use the PHCollectionListChangeRequest class to request changes for PHCollectionList objects. To make changes to collection lists (such as folders containing 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 creationRequestForCollectionListWithTitle method to create a new asset collection.
  • Call the deleteCollectionLists: method to delete existing asset collections.
  • Call the changeRequestForCollectionList: or changeRequestForCollectionList method to modify a collection’s metadata or its list of child collections.

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 a collection list works like a mutable version of the collection list object. Use the change request’s properties and instance methods to request changes to the collection list itself.

After Photos runs the change delegate and calls your completion handler, the collection list’s state reflects the changes you requested in the delegate.

If you create or use a change request object outside a photo library change delegate, Photos raises an Objective-C exception. For details on change delegates, 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.


PHCloudIdentifierMBS   -   PHCollectionListMBS


The biggest plugin in space...