Platforms to show: All Mac Windows Linux Cross-Platform
Back to PHAssetCollectionChangeRequestMBS class.
PHAssetCollectionChangeRequestMBS.available as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Should return true on MacOS 10.15 or newer.
PHAssetCollectionChangeRequestMBS.changeRequestForAssetCollection(assetCollection as PHAssetCollectionMBS) as PHAssetCollectionChangeRequestMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
assetCollection: The asset collection to be modified.
Returns an asset collection change request.
After you create a change request within a photo library change block, propose changes to the collection’s title or list of member assets with the properties and instance methods of the change request. After Photos runs your change block, the asset collection reflects your changes. For details on change blocks, see PHPhotoLibraryMBS.
Use this method when modifying an asset collection’s metadata or when adding or removing assets without regard to their arrangement. To work with indexes in the list of member assets, use the changeRequestForAssetCollection method instead.
See also:
PHAssetCollectionChangeRequestMBS.changeRequestForAssetCollection(assetCollection as PHAssetCollectionMBS, assets as PHFetchResultMBS) as PHAssetCollectionChangeRequestMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
assetCollection: The asset collection to be modified.
assets: A fetch result listing the assets in the collection.
Returns an asset collection change request.
After you create a change request within a photo library change block, you propose changes to the collection’s title or list of member assets with the properties and instance methods of the change request. After Photos runs your change block, the asset collection reflects your changes. For details on change blocks, see PHPhotoLibraryMBS.
Use this method when you need to insert, remove, or rearrange assets at specified indexes in the asset collection’s list of member assets. By passing in a fetch result reflecting what your app sees as the current state of the collection’s membership, the Photos framework can ensure that the indexes you specify are valid even if the collection has changed since you last fetched it. If you don’t need to work with indexes in the list of member assets, you can use the changeRequestForAssetCollection method instead.
See also:
PHAssetCollectionChangeRequestMBS.creationRequestForAssetCollectionWithTitle(title as string) as PHAssetCollectionChangeRequestMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
image: A name for the new asset collection.
Returns an asset collection creation request.
Call this method within a photo library change block to create a new asset collection. For details on change blocks, see PHPhotoLibraryMBS.
To add assets to the newly created asset collection or change its title, use the methods listed in Modifying Asset Collections. To reference the newly created asset collection later in the same change block or after the change block completes, use the placeholderForCreatedAssetCollection property to retrieve a placeholder object.
PHAssetCollectionChangeRequestMBS.deleteAssetCollections(Collections() as PHCollectionListMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
assetCollections: An array of PHAssetCollectionMBS objects to be deleted.
Call this method within a photo library change block to delete asset collections. For details on change blocks, see PHPhotoLibraryMBS.
The items on this page are in the following plugins: MBS Mac64bit Plugin.