PHAssetCollectionChangeRequestMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


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


💬 Ask a question or report a problem