---
title: HKCategoryValuePredicateProviding
framework: healthkit
role: symbol
role_heading: Protocol
path: healthkit/hkcategoryvaluepredicateproviding
---

# HKCategoryValuePredicateProviding

A protocol for objects that produce predicates that match category value samples.

## Declaration

```swift
protocol HKCategoryValuePredicateProviding : Hashable, RawRepresentable
```

## Topics

### Creating predicates

- [predicateForSamples(_:value:)](healthkit/hkcategoryvaluepredicateproviding/predicateforsamples(_:value:).md)
- [predicateForSamples(equalTo:)](healthkit/hkcategoryvaluepredicateproviding/predicateforsamples(equalto:).md)

## Relationships

### Inherits From

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)

### Conforming Types

- [HKCategoryValue](healthkit/hkcategoryvalue.md)
- [HKCategoryValueAppetiteChanges](healthkit/hkcategoryvalueappetitechanges.md)
- [HKCategoryValueAppleStandHour](healthkit/hkcategoryvalueapplestandhour.md)
- [HKCategoryValueAppleWalkingSteadinessEvent](healthkit/hkcategoryvalueapplewalkingsteadinessevent.md)
- [HKCategoryValueCervicalMucusQuality](healthkit/hkcategoryvaluecervicalmucusquality.md)
- [HKCategoryValueContraceptive](healthkit/hkcategoryvaluecontraceptive.md)
- [HKCategoryValueEnvironmentalAudioExposureEvent](healthkit/hkcategoryvalueenvironmentalaudioexposureevent.md)
- [HKCategoryValueHeadphoneAudioExposureEvent](healthkit/hkcategoryvalueheadphoneaudioexposureevent.md)
- [HKCategoryValueLowCardioFitnessEvent](healthkit/hkcategoryvaluelowcardiofitnessevent.md)
- [HKCategoryValueMenopausalState](healthkit/hkcategoryvaluemenopausalstate.md)
- [HKCategoryValueMenstrualFlow](healthkit/hkcategoryvaluemenstrualflow.md)
- [HKCategoryValueOvulationTestResult](healthkit/hkcategoryvalueovulationtestresult.md)
- [HKCategoryValuePregnancyTestResult](healthkit/hkcategoryvaluepregnancytestresult.md)
- [HKCategoryValuePresence](healthkit/hkcategoryvaluepresence.md)
- [HKCategoryValueProgesteroneTestResult](healthkit/hkcategoryvalueprogesteronetestresult.md)
- [HKCategoryValueSeverity](healthkit/hkcategoryvalueseverity.md)
- [HKCategoryValueSleepAnalysis](healthkit/hkcategoryvaluesleepanalysis.md)
- [HKCategoryValueVaginalBleeding](healthkit/hkcategoryvaluevaginalbleeding.md)

## See Also

### Creating category sample predicates

- [predicateForCategorySamples(with:value:)](healthkit/hkquery/predicateforcategorysamples(with:value:).md)
