Photos · IOS API REFERENCE
PHAsset
class · iOS 8.0+ · SDK 27.1
class PHAsset
Members (36)
static · iOS 8.0+fetchAssets
TypeScriptstatic fetchAssetsInOptions(assetCollection: PHAssetCollection, options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declarationclass func fetchAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+ · Deprecated in iOS 11.0fetchAssets
TypeScriptstatic fetchAssetsWithALAssetURLsOptions(assetURLs: Array<string>, options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declarationclass func fetchAssets(withALAssetURLs assetURLs: [URL], options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+fetchAssets
TypeScriptstatic fetchAssetsWithBurstIdentifierOptions(burstIdentifier: string, options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declarationclass func fetchAssets(withBurstIdentifier burstIdentifier: String, options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+fetchAssets
TypeScriptstatic fetchAssetsWithLocalIdentifiersOptions(identifiers: Array<string>, options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declarationclass func fetchAssets(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+fetchAssets
TypeScriptstatic fetchAssetsWithOptions(mediaType: PHAssetMediaType, options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declarationclass func fetchAssets(with mediaType: PHAssetMediaType, options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+fetchAssets
TypeScriptstatic fetchAssetsWith(options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declarationclass func fetchAssets(with options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+fetchKeyAssets
TypeScriptstatic fetchKeyAssets(assetCollection: PHAssetCollection, options?: (PHFetchOptions) | null): (PHFetchResult<PHAsset>) | null
Swift declarationclass func fetchKeyAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?) -> PHFetchResult<PHAsset>?
method · iOS 8.0+canPerform
TypeScriptcanPerform(editOperation: PHAssetEditOperation): boolean
Swift declarationfunc canPerform(_ editOperation: PHAssetEditOperation) -> Bool
method · iOS 8.0+cancelContentEditingInputRequest
TypeScriptcancelContentEditingInputRequest(requestID: number): void
Swift declarationfunc cancelContentEditingInputRequest(_ requestID: PHContentEditingInputRequestID)
initinit
TypeScriptstatic init(): PHAsset
Swift declarationinit()
method · iOS 8.0+requestContentEditingInput
TypeScriptrequestContentEditingInput(options: (PHContentEditingInputRequestOptions) | null, completionHandler: ((arg0: (PHContentEditingInput) | null, arg1: NativeMap<unknown, unknown>) => void)): number
Swift declarationfunc requestContentEditingInput(with options: PHContentEditingInputRequestOptions?, completionHandler: @escaping (PHContentEditingInput?, [AnyHashable : Any]) -> Void) -> PHContentEditingInputRequestID
get · iOS 26.0+addedDate
TypeScriptget addedDate(): (globalThis.Date) | null
Swift declarationvar addedDate: Date? { get }
get · iOS 15.0+adjustmentFormatIdentifier
TypeScriptget adjustmentFormatIdentifier(): (string) | null
Swift declarationvar adjustmentFormatIdentifier: String? { get }
get · iOS 18.0+adjustmentTimestamp
TypeScriptget adjustmentTimestamp(): (globalThis.Date) | null
Swift declarationvar adjustmentTimestamp: Date? { get }
get · iOS 18.0+adjustmentsState
TypeScriptget adjustmentsState(): PHAsset_AdjustmentsState
Swift declarationvar adjustmentsState: PHAsset.AdjustmentsState { get }
get · iOS 8.0+burstIdentifier
TypeScriptget burstIdentifier(): (string) | null
Swift declarationvar burstIdentifier: String? { get }
get · iOS 8.0+burstSelectionTypes
TypeScriptget burstSelectionTypes(): PHAssetBurstSelectionType
Swift declarationvar burstSelectionTypes: PHAssetBurstSelectionType { get }
get · iOS 26.0+contentType
TypeScriptget contentType(): _UniformTypeIdentifiers_UTType
Swift declarationvar contentType: UTType { get }
get · iOS 8.0+creationDate
TypeScriptget creationDate(): (globalThis.Date) | null
Swift declarationvar creationDate: Date? { get }
get · iOS 8.0+duration
TypeScriptget duration(): number
Swift declarationvar duration: TimeInterval { get }
get · iOS 27.0+extendedMetadata
TypeScriptget extendedMetadata(): PHAssetExtendedMetadata
Swift declarationvar extendedMetadata: PHAssetExtendedMetadata { get }
get · iOS 8.0+isFavorite
TypeScriptget isFavorite(): boolean
Swift declarationvar isFavorite: Bool { get }
get · iOS 15.0+hasAdjustments
TypeScriptget hasAdjustments(): boolean
Swift declarationvar hasAdjustments: Bool { get }
get · iOS 8.0+isHidden
TypeScriptget isHidden(): boolean
Swift declarationvar isHidden: Bool { get }
get · iOS 8.0+location
TypeScriptget location(): (__LocationEssentials_CLLocation) | null
Swift declarationvar location: CLLocation? { get }
get · iOS 8.0+mediaSubtypes
TypeScriptget mediaSubtypes(): PHAssetMediaSubtype
Swift declarationvar mediaSubtypes: PHAssetMediaSubtype { get }
get · iOS 8.0+mediaType
TypeScriptget mediaType(): PHAssetMediaType
Swift declarationvar mediaType: PHAssetMediaType { get }
get · iOS 8.0+modificationDate
TypeScriptget modificationDate(): (globalThis.Date) | null
Swift declarationvar modificationDate: Date? { get }
get · iOS 27.0+originalResourceChoice
TypeScriptget originalResourceChoice(): PHAsset_OriginalResourceChoice
Swift declarationvar originalResourceChoice: PHAsset.OriginalResourceChoice { get }
get · iOS 8.0+pixelHeight
TypeScriptget pixelHeight(): number
Swift declarationvar pixelHeight: Int { get }
get · iOS 8.0+pixelWidth
TypeScriptget pixelWidth(): number
Swift declarationvar pixelWidth: Int { get }
get · iOS 11.0+playbackStyle
TypeScriptget playbackStyle(): PHAsset_PlaybackStyle
Swift declarationvar playbackStyle: PHAsset.PlaybackStyle { get }
get · iOS 11.0+playbackVariation
TypeScriptget playbackVariation(): PHAsset_PlaybackVariation
Swift declarationvar playbackVariation: PHAsset.PlaybackVariation { get }
get · iOS 27.0+rating
TypeScriptget rating(): PHAsset_Rating
Swift declarationvar rating: PHAsset.Rating { get }
get · iOS 8.0+representsBurst
TypeScriptget representsBurst(): boolean
Swift declarationvar representsBurst: Bool { get }
get · iOS 9.0+sourceType
TypeScriptget sourceType(): PHAssetSourceType
Swift declarationvar sourceType: PHAssetSourceType { get }
Skipped declarations
No declarations were skipped in this snapshot.
All Photos types →