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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Using class methods on the PHAssetMBS, PHCollectionMBS, PHAssetCollectionMBS, and PHCollectionListMBS classes to fetch assets or collections produces a PHFetchResultMBS object containing the requested objects. The options you specify control which objects the fetch result includes, how those objects are arranged in the fetch result, and how Photos should notify your app of changes to the fetch result.
Photos supports only a restricted set of keys for the predicate and sortDescriptors properties. The set of available keys depends on which class you’re using to fetch assets or collections—see Table 1 for the list of keys supported by each class.
Supported predicate and sort descriptor keys
Class for Fetch Method | Supported Keys |
PHAsset | SELF, localIdentifier, creationDate, modificationDate, mediaType, mediaSubtypes, duration, pixelWidth, pixelHeight, favorite (or isFavorite), hidden (or isHidden), burstIdentifier |
PHAssetCollection | SELF, localIdentifier, localizedTitle (or title), startDate, endDate, estimatedAssetCount |
PHCollectionList | SELF, localIdentifier, localizedTitle (or title), startDate, endDate |
PHCollection (can fetch a mix of PHCollectionList and PHAssetCollection objects) | SELF, localIdentifier, localizedTitle (or title), startDate, endDate |
This class has no sub classes.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
PHContentEditingOutputMBS - PHFetchResultChangeDetailsMBS