Photos · IOS API REFERENCE
PHAssetCollection
class · iOS 8.0+ · SDK 27.1
class PHAssetCollection
Members (16)
static · iOS 8.0+fetchAssetCollectionsContaining
TypeScriptstatic fetchAssetCollectionsContaining(asset: PHAsset, type: PHAssetCollectionType, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declarationclass func fetchAssetCollectionsContaining(_ asset: PHAsset, with type: PHAssetCollectionType, options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+ · Deprecated in iOS 16.0fetchAssetCollections
TypeScriptstatic fetchAssetCollectionsWithALAssetGroupURLsOptions(assetGroupURLs: Array<string>, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declarationclass func fetchAssetCollections(withALAssetGroupURLs assetGroupURLs: [URL], options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+fetchAssetCollections
TypeScriptstatic fetchAssetCollectionsWithLocalIdentifiersOptions(identifiers: Array<string>, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declarationclass func fetchAssetCollections(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+fetchAssetCollections
TypeScriptstatic fetchAssetCollectionsWithSubtypeOptions(type: PHAssetCollectionType, subtype: PHAssetCollectionSubtype, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declarationclass func fetchAssetCollections(with type: PHAssetCollectionType, subtype: PHAssetCollectionSubtype, options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+ · Deprecated in iOS 13.0fetchMoments
TypeScriptstatic fetchMomentsInMomentListOptions(momentList: PHCollectionList, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declarationclass func fetchMoments(inMomentList momentList: PHCollectionList, options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+ · Deprecated in iOS 13.0fetchMoments
TypeScriptstatic fetchMomentsWith(options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declarationclass func fetchMoments(with options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+transientAssetCollection
TypeScriptstatic transientAssetCollectionWithAssetFetchResultTitle(fetchResult: PHFetchResult<PHAsset>, title?: (string) | null): PHAssetCollection
Swift declarationclass func transientAssetCollection(withAssetFetchResult fetchResult: PHFetchResult<PHAsset>, title: String?) -> PHAssetCollection
static · iOS 8.0+transientAssetCollection
TypeScriptstatic transientAssetCollectionWithTitle(assets: Array<PHAsset>, title?: (string) | null): PHAssetCollection
Swift declarationclass func transientAssetCollection(with assets: [PHAsset], title: String?) -> PHAssetCollection
initinit
TypeScriptstatic init(): PHAssetCollection
Swift declarationinit()
get · iOS 8.0+approximateLocation
TypeScriptget approximateLocation(): (__LocationEssentials_CLLocation) | null
Swift declarationvar approximateLocation: CLLocation? { get }
get · iOS 8.0+assetCollectionSubtype
TypeScriptget assetCollectionSubtype(): PHAssetCollectionSubtype
Swift declarationvar assetCollectionSubtype: PHAssetCollectionSubtype { get }
get · iOS 8.0+assetCollectionType
TypeScriptget assetCollectionType(): PHAssetCollectionType
Swift declarationvar assetCollectionType: PHAssetCollectionType { get }
get · iOS 8.0+endDate
TypeScriptget endDate(): (globalThis.Date) | null
Swift declarationvar endDate: Date? { get }
get · iOS 8.0+estimatedAssetCount
TypeScriptget estimatedAssetCount(): number
Swift declarationvar estimatedAssetCount: Int { get }
get · iOS 8.0+localizedLocationNames
TypeScriptget localizedLocationNames(): Array<string>
Swift declarationvar localizedLocationNames: [String] { get }
get · iOS 8.0+startDate
TypeScriptget startDate(): (globalThis.Date) | null
Swift declarationvar startDate: Date? { get }
Skipped declarations
No declarations were skipped in this snapshot.
All Photos types →