PHObject

PHObject

PHObject Class of Photos The abstract superclass for Photos model objects (assets and collections).

class PHObject

Overview

You do not create or use instances of this class directly. Instead, work with instances of its concrete subclasses—PHAsset, PHAssetCollection, PHCollectionList, and PHObjectPlaceholder.

Because the PHObject class implements the //com.apple.documentation/documentation/ObjectiveC/NSObjectProtocol/isEqual(:)) and //com.apple.documentation/documentation/ObjectiveC/NSObjectProtocol/hash methods in terms of its localIdentifier property, you can use techniques that depend on these methods to keep track of asset and collection objects.