One Logo Pool Ball
Photos · IOS API REFERENCE

PHAsset

class · iOS 8.0+ · SDK 27.1

class PHAsset

Members (36)

static · iOS 8.0+

fetchAssets

TypeScript
static fetchAssetsInOptions(assetCollection: PHAssetCollection, options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declaration
class func fetchAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+ · Deprecated in iOS 11.0

fetchAssets

TypeScript
static fetchAssetsWithALAssetURLsOptions(assetURLs: Array<string>, options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declaration
class func fetchAssets(withALAssetURLs assetURLs: [URL], options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+

fetchAssets

TypeScript
static fetchAssetsWithBurstIdentifierOptions(burstIdentifier: string, options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declaration
class func fetchAssets(withBurstIdentifier burstIdentifier: String, options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+

fetchAssets

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

fetchAssets

TypeScript
static fetchAssetsWithOptions(mediaType: PHAssetMediaType, options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declaration
class func fetchAssets(with mediaType: PHAssetMediaType, options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+

fetchAssets

TypeScript
static fetchAssetsWith(options?: (PHFetchOptions) | null): PHFetchResult<PHAsset>
Swift declaration
class func fetchAssets(with options: PHFetchOptions?) -> PHFetchResult<PHAsset>
static · iOS 8.0+

fetchKeyAssets

TypeScript
static fetchKeyAssets(assetCollection: PHAssetCollection, options?: (PHFetchOptions) | null): (PHFetchResult<PHAsset>) | null
Swift declaration
class func fetchKeyAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?) -> PHFetchResult<PHAsset>?
method · iOS 8.0+

canPerform

TypeScript
canPerform(editOperation: PHAssetEditOperation): boolean
Swift declaration
func canPerform(_ editOperation: PHAssetEditOperation) -> Bool
method · iOS 8.0+

cancelContentEditingInputRequest

TypeScript
cancelContentEditingInputRequest(requestID: number): void
Swift declaration
func cancelContentEditingInputRequest(_ requestID: PHContentEditingInputRequestID)
init

init

TypeScript
static init(): PHAsset
Swift declaration
init()
method · iOS 8.0+

requestContentEditingInput

TypeScript
requestContentEditingInput(options: (PHContentEditingInputRequestOptions) | null, completionHandler: ((arg0: (PHContentEditingInput) | null, arg1: NativeMap<unknown, unknown>) => void)): number
Swift declaration
func requestContentEditingInput(with options: PHContentEditingInputRequestOptions?, completionHandler: @escaping (PHContentEditingInput?, [AnyHashable : Any]) -> Void) -> PHContentEditingInputRequestID
get · iOS 26.0+

addedDate

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

adjustmentFormatIdentifier

TypeScript
get adjustmentFormatIdentifier(): (string) | null
Swift declaration
var adjustmentFormatIdentifier: String? { get }
get · iOS 18.0+

adjustmentTimestamp

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

adjustmentsState

TypeScript
get adjustmentsState(): PHAsset_AdjustmentsState
Swift declaration
var adjustmentsState: PHAsset.AdjustmentsState { get }
get · iOS 8.0+

burstIdentifier

TypeScript
get burstIdentifier(): (string) | null
Swift declaration
var burstIdentifier: String? { get }
get · iOS 8.0+

burstSelectionTypes

TypeScript
get burstSelectionTypes(): PHAssetBurstSelectionType
Swift declaration
var burstSelectionTypes: PHAssetBurstSelectionType { get }
get · iOS 26.0+

contentType

TypeScript
get contentType(): _UniformTypeIdentifiers_UTType
Swift declaration
var contentType: UTType { get }
get · iOS 8.0+

creationDate

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

duration

TypeScript
get duration(): number
Swift declaration
var duration: TimeInterval { get }
get · iOS 27.0+

extendedMetadata

TypeScript
get extendedMetadata(): PHAssetExtendedMetadata
Swift declaration
var extendedMetadata: PHAssetExtendedMetadata { get }
get · iOS 8.0+

isFavorite

TypeScript
get isFavorite(): boolean
Swift declaration
var isFavorite: Bool { get }
get · iOS 15.0+

hasAdjustments

TypeScript
get hasAdjustments(): boolean
Swift declaration
var hasAdjustments: Bool { get }
get · iOS 8.0+

isHidden

TypeScript
get isHidden(): boolean
Swift declaration
var isHidden: Bool { get }
get · iOS 8.0+

location

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

mediaSubtypes

TypeScript
get mediaSubtypes(): PHAssetMediaSubtype
Swift declaration
var mediaSubtypes: PHAssetMediaSubtype { get }
get · iOS 8.0+

mediaType

TypeScript
get mediaType(): PHAssetMediaType
Swift declaration
var mediaType: PHAssetMediaType { get }
get · iOS 8.0+

modificationDate

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

originalResourceChoice

TypeScript
get originalResourceChoice(): PHAsset_OriginalResourceChoice
Swift declaration
var originalResourceChoice: PHAsset.OriginalResourceChoice { get }
get · iOS 8.0+

pixelHeight

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

pixelWidth

TypeScript
get pixelWidth(): number
Swift declaration
var pixelWidth: Int { get }
get · iOS 11.0+

playbackStyle

TypeScript
get playbackStyle(): PHAsset_PlaybackStyle
Swift declaration
var playbackStyle: PHAsset.PlaybackStyle { get }
get · iOS 11.0+

playbackVariation

TypeScript
get playbackVariation(): PHAsset_PlaybackVariation
Swift declaration
var playbackVariation: PHAsset.PlaybackVariation { get }
get · iOS 27.0+

rating

TypeScript
get rating(): PHAsset_Rating
Swift declaration
var rating: PHAsset.Rating { get }
get · iOS 8.0+

representsBurst

TypeScript
get representsBurst(): boolean
Swift declaration
var representsBurst: Bool { get }
get · iOS 9.0+

sourceType

TypeScript
get sourceType(): PHAssetSourceType
Swift declaration
var sourceType: PHAssetSourceType { get }

Skipped declarations

No declarations were skipped in this snapshot.

All Photos types →