predicateForObjects(from:)
Returns a predicate that matches all the objects that were created by any of the provided source revisions.
Declaration
class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicateParameters
- sourceRevisions:
A set of source revisions that have saved data to the HealthKit store.
Return Value
A predicate that matches all the objects created by any of the provided source revisions.
Discussion
The following sample uses both the convenience method and a predicate format string to create equivalent predicates.
See Also
Creating object predicates
predicateForObject(with:)predicateForObjects(with:)predicateForObjects(from:)predicateForObjects(from:)predicateForObjects(from:)predicateForObjects(withDeviceProperty:allowedValues:)predicateForObjects(withMetadataKey:)predicateForObjects(withMetadataKey:allowedValues:)predicateForObjects(withMetadataKey:operatorType:value:)predicateForObjectsWithNoCorrelation()