Platforms to show: All Mac Windows Linux Cross-Platform
PHAssetResourceMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Each PHAssetMBS object references one or more resources. Use these objects to work with those resources directly, like when backing up or restoring assets.
- A photo asset can contain both JPEG and RAW files representing the same photo.
- A Live Photo asset contains both still photo and video resources.
- An edited asset contains resources representing asset content before and after the edit, as well as a resource corresponding to the PHAdjustmentDataMBS object that describes the edit.
To work with the data contained in an asset resource, fetch it using the PHAssetResourceManagerMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 7 properties
- property assetLocalIdentifier as String
- property Handle as Integer
- property originalFilename as String
- property pixelHeight as Integer New in 25.1
- property pixelWidth as Integer New in 25.1
- property Type as Integer
- property uniformTypeIdentifier as String
- method Constructor Private
- 3 shared methods
- shared method assetResourcesForAsset(asset as PHAssetMBS) as PHAssetResourceMBS()
- shared method assetResourcesForLivePhoto(livePhoto as PHLivePhotoMBS) as PHAssetResourceMBS()
- shared method available as boolean
This class has no sub classes.
Blog Entries
Release notes
- Version 25.1
- Added pixelHeight and pixelWidth properties to PHAssetResourceMBS class.
Some methods using this class:
- PHAssetResourceManagerMBS.requestDataForAssetResource(resource as PHAssetResourceMBS, options as PHAssetResourceRequestOptionsMBS, DataReceivedHandler as RequestDataForAssetResourceDataReceivedMBS, CompleteHandler as RequestDataForAssetResourceCompletedMBS, tag as variant = nil) as Integer
- PHAssetResourceManagerMBS.writeDataForAssetResource(resource as PHAssetResourceMBS, file as FolderItem, options as PHAssetResourceRequestOptionsMBS, CompleteHandler as WriteDataForAssetResourceCompletedMBS, tag as variant = nil)
Some related classes:
- class PHAdjustmentDataMBS
- class PHAssetMBS
- class PHAssetResourceManagerMBS
- class PHAssetResourceRequestOptionsMBS
- class PHLivePhotoMBS
The items on this page are in the following plugins: MBS Mac64bit Plugin.
PHAssetResourceManagerMBS - PHAssetResourceRequestOptionsMBS
