Platforms to show: All Mac Windows Linux Cross-Platform
PHAssetChangeRequestMBS class
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 PHAssetChangeRequest class to request changes for PHAssetMBS objects. To make changes to assets in the Photos library, create a change request by using the appropriate class method for the change you want to perform.
- Call one of the methods listed in Adding New Assets to create a new asset from an image or video file.
- Call the deleteAssets: method to delete existing assets.
- Call the changeRequestForAsset: method to modify an asset’s content or metadata.
A change request for creating or modifying an asset works like a mutable version of the asset object. Use the change request’s properties to request changes to the corresponding properties of the asset itself.
After Photos runs the change block and calls your completion handler, the asset’s state reflects the changes that 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.
- 7 properties
- property contentEditingOutput as PHContentEditingOutputMBS
- property creationDate as Date
- property creationDateTime as DateTime
- property Favorite as Boolean
- property Hidden as Boolean
- property location as Variant
- property placeholderForCreatedAsset as PHObjectPlaceholderMBS
- 2 methods
- method Constructor
- method revertAssetContentToOriginal
- 6 shared methods
- shared method available as boolean
- shared method changeRequestForAsset(asset as PHAssetMBS) as PHAssetChangeRequestMBS
- shared method creationRequestForAssetFromImage(image as NSImageMBS) as PHAssetChangeRequestMBS
- shared method creationRequestForAssetFromImageAtFile(file as FolderItem) as PHAssetChangeRequestMBS
- shared method creationRequestForAssetFromVideoAtFileURL(file as FolderItem) as PHAssetChangeRequestMBS
- shared method deleteAssets(assets() as PHAssetMBS)
Sub classes:
The items on this page are in the following plugins: MBS Mac64bit Plugin.
PHAdjustmentDataMBS - PHAssetCollectionChangeRequestMBS