predicateForUserAnnotatedMedications(isArchived:)
Declaration
class func predicateForUserAnnotatedMedications(isArchived: Bool) -> NSPredicateParameters
- isArchived:
The archived status of the medication. Ex: True will match medications in the archived section in the Health App.
Discussion
Creates a predicate for use with HKUserAnnotatedMedicationQuery.
Creates a query predicate that matches HKUserAnnotatedMedication objects that have the archived status specified.