One Logo Pool Ball
Photos · IOS API REFERENCE

PHAssetCollection

class · iOS 8.0+ · SDK 27.1

class PHAssetCollection

Members (16)

static · iOS 8.0+

fetchAssetCollectionsContaining

TypeScript
static fetchAssetCollectionsContaining(asset: PHAsset, type: PHAssetCollectionType, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declaration
class func fetchAssetCollectionsContaining(_ asset: PHAsset, with type: PHAssetCollectionType, options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+ · Deprecated in iOS 16.0

fetchAssetCollections

TypeScript
static fetchAssetCollectionsWithALAssetGroupURLsOptions(assetGroupURLs: Array<string>, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declaration
class func fetchAssetCollections(withALAssetGroupURLs assetGroupURLs: [URL], options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+

fetchAssetCollections

TypeScript
static fetchAssetCollectionsWithLocalIdentifiersOptions(identifiers: Array<string>, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declaration
class func fetchAssetCollections(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+

fetchAssetCollections

TypeScript
static fetchAssetCollectionsWithSubtypeOptions(type: PHAssetCollectionType, subtype: PHAssetCollectionSubtype, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declaration
class func fetchAssetCollections(with type: PHAssetCollectionType, subtype: PHAssetCollectionSubtype, options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+ · Deprecated in iOS 13.0

fetchMoments

TypeScript
static fetchMomentsInMomentListOptions(momentList: PHCollectionList, options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declaration
class func fetchMoments(inMomentList momentList: PHCollectionList, options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+ · Deprecated in iOS 13.0

fetchMoments

TypeScript
static fetchMomentsWith(options?: (PHFetchOptions) | null): PHFetchResult<PHAssetCollection>
Swift declaration
class func fetchMoments(with options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
static · iOS 8.0+

transientAssetCollection

TypeScript
static transientAssetCollectionWithAssetFetchResultTitle(fetchResult: PHFetchResult<PHAsset>, title?: (string) | null): PHAssetCollection
Swift declaration
class func transientAssetCollection(withAssetFetchResult fetchResult: PHFetchResult<PHAsset>, title: String?) -> PHAssetCollection
static · iOS 8.0+

transientAssetCollection

TypeScript
static transientAssetCollectionWithTitle(assets: Array<PHAsset>, title?: (string) | null): PHAssetCollection
Swift declaration
class func transientAssetCollection(with assets: [PHAsset], title: String?) -> PHAssetCollection
init

init

TypeScript
static init(): PHAssetCollection
Swift declaration
init()
get · iOS 8.0+

approximateLocation

TypeScript
get approximateLocation(): (__LocationEssentials_CLLocation) | null
Swift declaration
var approximateLocation: CLLocation? { get }
get · iOS 8.0+

assetCollectionSubtype

TypeScript
get assetCollectionSubtype(): PHAssetCollectionSubtype
Swift declaration
var assetCollectionSubtype: PHAssetCollectionSubtype { get }
get · iOS 8.0+

assetCollectionType

TypeScript
get assetCollectionType(): PHAssetCollectionType
Swift declaration
var assetCollectionType: PHAssetCollectionType { get }
get · iOS 8.0+

endDate

TypeScript
get endDate(): (globalThis.Date) | null
Swift declaration
var endDate: Date? { get }
get · iOS 8.0+

estimatedAssetCount

TypeScript
get estimatedAssetCount(): number
Swift declaration
var estimatedAssetCount: Int { get }
get · iOS 8.0+

localizedLocationNames

TypeScript
get localizedLocationNames(): Array<string>
Swift declaration
var localizedLocationNames: [String] { get }
get · iOS 8.0+

startDate

TypeScript
get startDate(): (globalThis.Date) | null
Swift declaration
var startDate: Date? { get }

Skipped declarations

No declarations were skipped in this snapshot.

All Photos types →