Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHFetchResultChangeDetailsMBS class.

PHFetchResultChangeDetailsMBS.available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Checks whether class is available.

Should return true on MacOS 10.13 or newer.

PHFetchResultChangeDetailsMBS.changeDetailsFromFetchResult(fromResult as PHFetchResultMBS, toFetchResult as PHFetchResultMBS, changedObjects() as PHObjectMBS) as PHFetchResultChangeDetailsMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates a change details object that summarizes the differences between two fetch results.

fromResult: A fetch result to be treated as the “before” state in the resulting change details object.
toResult: A fetch result to be treated as the “after” state in the resulting change details object.
changedObjects: An collection of objects to manually note as changed between the two fetch results.

Typically, you use the PHChangeMBS class to retrieve PHFetchResultChangeDetailsMBS objects describing any changes that have occurred since you performed a fetch, but you can also use this method to get a change details object that summarizes the difference between two arbitrary PHFetchResultMBS objects. In this case, Photos cannot automatically determine when the same objects are present in both fetch results but those objects’ content has changed, so the changedIndexes and changedObjects properties are empty.

However, you can use the changedObjects parameter to manually note objects as changed. For example, consider a view controller that maintains a base fetch result representing a list of albums, and a transient collection that filters the list according to the user’s search terms.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...