Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHAssetResourceMBS class.

PHAssetResourceMBS.assetResourcesForAsset(asset as PHAssetMBS) as PHAssetResourceMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the list of data resources associated with an asset.

asset: A photo or video asset in the Photos library.

Returns the asset’s resources.

Asset resource objects describe the data files that an asset represents. An asset can contain multiple resources—for example, an edited photo asset contains resources for both the original and edited images, as well as for the PHAdjustmentDataMBS object describing the edit. To work with one of these files, fetch the underlying data using the PHAssetResourceManagerMBS class.

PHAssetResourceMBS.assetResourcesForLivePhoto(livePhoto as PHLivePhotoMBS) as PHAssetResourceMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the list of data resources associated with a Live Photo object.

livePhoto: A Live Photo object.

Returns the underlying resources that constitute the Live Photo.

A Live Photo is a picture, taken with a compatible device, that includes movement and sound from the moments just before and after its capture. A PHLivePhoto object represents the displayable combination of image, motion, and sound data. You can obtain such objects from the Photos library using the PHImageManagerMBS class or construct them from asset resources exported from a Photos library using the PHLivePhotoMBS class.

Use this method to export the underlying resources that constitute a Live Photo. For example, a social networking app can retrieve those data files and upload them to a server. Then, on another user’s device, the app downloads those data files and uses the PHLivePhoto class to re-create a Live Photo object for display using the PHLivePhotoViewMBS class.

PHAssetResourceMBS.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
Checks whether class is available.

Should return true on MacOS 10.15 or newer.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...