Platforms to show: All Mac Windows Linux Cross-Platform
Back to PHAssetCollectionMBS class.
PHAssetCollectionMBS.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.13 or newer.
PHAssetCollectionMBS.fetchAssetCollectionsContainingAsset(asset as PHAssetMBS, type as Integer, options as PHFetchOptionsMBS = nil) as PHFetchResultMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
asset: A Photos asset.
type: An asset collection type, such as an album or a moment. See Type constants.
options: Options that specify a filter predicate and sort order for the fetched asset collections, or nil to use default options. For details, see PHFetchOptionsMBS.
Returns a fetch result that contains the requested PHAssetCollectionMBS objects, or an empty fetch result if no objects match the request.
PHAssetCollectionMBS.fetchAssetCollectionsWithALAssetGroupURLs(assetGroupURLs() as string, options as PHFetchOptionsMBS = nil) as PHFetchResultMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
assetGroupURLs: An array of URLs, each an asset group URL that was previously retrieved from an ALAssetsGroupMBS object.
options: Options that specify a filter predicate and sort order for the fetched asset collections, or nil to use default options. For details, see PHFetchOptionsMBS.
Returns a fetch result that contains the requested PHAssetCollectionMBS objects, or an empty fetch result if no objects match the request.
The Assets Library framework is deprecated in iOS 8.0 and later, replaced by the Photos framework. Use this method if your app has previously stored URLs from ALAssetsGroupMBS objects and you need to retrieve the corresponding Photos framework objects.
PHAssetCollectionMBS.fetchAssetCollectionsWithLocalIdentifiers(identifiers() as string, options as PHFetchOptionsMBS = nil) as PHFetchResultMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
identifiers: An array of strings, each the localIdentifier string of an asset collection.
options: Options that specify a filter predicate and sort order for the fetched asset collections, or nil to use default options. For details, see PHFetchOptionsMBS.
Returns a fetch result that contains the requested PHAssetCollectionMBS objects, or an empty fetch result if no objects match the request.
PHAssetCollectionMBS.fetchAssetCollectionsWithType(type as Integer, subType as integer, options as PHFetchOptionsMBS = nil) as PHFetchResultMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
type: A type of asset collection, such as an album or a moment. See Type constants.
subtype: A subtype of asset collection. See Subtype constants.
options: Options that specify a filter predicate and sort order for the fetched asset collections, or nil to use default options. For details, see PHFetchOptionsMBS.
Returns a fetch result that contains the requested PHAssetCollectionMBS objects, or an empty fetch result if no objects match the request.
By default, the returned PHFetchResultMBS object contains all asset collections with the specified type and subtype. To retrieve a more specific set of asset collections, provide a PHFetchOptionsMBS object containing a filter predicate.
Some examples using this method:
PHAssetCollectionMBS.transientAssetCollectionWithAssetFetchResult(fetchResult as PHAssetMBS, title as string) as PHAssetCollectionMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
fetchResult: A fetch result containing one or more PHAssetMBS objects.
title: A name for the new temporary asset collection.
Returns a new asset collection.
Transient asset collections are not saved to local storage or iCloud and do not appear in the Photos application or other apps using the Photos framework. A transient collection can be useful if you’ve designed a UI for displaying the contents of a collection and want to display an arbitrary set of assets.
PHAssetCollectionMBS.transientAssetCollectionWithAssets(assets() as PHAssetMBS, title as string) as PHAssetCollectionMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
assets: An array of PHAssetMBS objects.
title: A name for the new temporary asset collection.
Returns a new asset collection.
Transient asset collections are not saved to local storage or iCloud and do not appear in the Photos app or other apps using the Photos framework. A transient collection can be useful if you’ve designed a UI for displaying the contents of a collection and want to display an arbitrary set of assets.
The items on this page are in the following plugins: MBS Mac64bit Plugin.