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 |
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.
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.
- 2 properties
- property placeholderForCreatedCollectionList as PHObjectPlaceholderMBS
- property title as String
- 7 methods
- method addChildCollections(collections() as PHCollectionMBS)
- method Constructor
- method insertChildCollections(collections() as PHCollectionMBS, indexes as NSIndexSetMBS)
- method moveChildCollections(AtIndexes as NSIndexSetMBS, toIndex as Integer)
- method removeChildCollections(AtIndexes as NSIndexSetMBS)
- method removeChildCollections(collections() as PHCollectionMBS)
- method replaceChildCollections(AtIndexes as NSIndexSetMBS, ChildCollections() as PHCollectionMBS)
- 5 shared methods
- shared method available as boolean
- shared method changeRequestForCollectionList(collectionList as PHCollectionListMBS) as PHCollectionListChangeRequestMBS
- shared method changeRequestForCollectionList(collectionList as PHCollectionListMBS, childCollections as PHFetchResultMBS) as PHCollectionListChangeRequestMBS
- shared method creationRequestForCollectionListWithTitle(title as string) as PHCollectionListChangeRequestMBS
- shared method deleteCollectionLists(collectionLists() as PHCollectionListMBS)
Super class PHChangeRequestMBS
- property Handle as Integer
- method Constructor Private
- shared method available as boolean
This class has no sub classes.
Some related classes:
- class NSIndexSetMBS
- class PHChangeRequestMBS
- class PHCollectionListMBS
- class PHCollectionMBS
- class PHFetchResultMBS
- class PHObjectPlaceholderMBS
- class PHPhotoLibraryMBS
The items on this page are in the following plugins: MBS Mac64bit Plugin.
PHCloudIdentifierMBS - PHCollectionListMBS