Contents

changeDetailsForObject:

Returns detailed change information for the specified asset or collection.

Declaration

- (PHObjectChangeDetails *) changeDetailsForObject:(PHObject *) object;

Parameters

Return Value

A change details object, or nil if there have been no changes to the specified asset or collection.

Discussion

When Photos calls your change observer’s photoLibraryDidChange(_:) method, get detailed change information about an asset or collection you’ve previously fetched by calling the changeDetailsForObject methods:

If the asset or collection has changed since you last fetched it, the resulting PHObjectChangeDetails object describes the changes. If there are no changes between the fetched object and the current state of the asset or collection it represents in the Photos library, this method returns nil.

For an asset collection or collection list, this method and the PHObjectChangeDetails object it returns describe changes only to the collection’s properties. If you are instead interested in changes to the collection’s membership, use the changeDetails(for:) method.

See Also

Getting Change Details