---
title: HKAppleWalkingSteadinessClassificationForQuantity
framework: healthkit
role: symbol
role_heading: Function
path: healthkit/hkapplewalkingsteadinessclassificationforquantity
---

# HKAppleWalkingSteadinessClassificationForQuantity

Provides a classification for a score that measures the steadiness of the user’s gait.

## Declaration

```occ
extern BOOL HKAppleWalkingSteadinessClassificationForQuantity(HKQuantity *value, HKAppleWalkingSteadinessClassification *classificationOut, NSError **errorOut);
```

## Parameters

- `value`: An doc://com.apple.healthkit/documentation/HealthKit/HKQuantity instance that contains a percentage value between 0.0 and 1.0. Use the doc://com.apple.healthkit/documentation/HealthKit/HKUnit class’s doc://com.apple.healthkit/documentation/HealthKit/HKUnit/percent() method to define the units for these values.
- `classificationOut`: A doc://com.apple.healthkit/documentation/HealthKit/HKAppleWalkingSteadinessClassificationForQuantity reference, which the method sets if the classification is successful.
- `errorOut`: A doc://com.apple.documentation/documentation/Foundation/NSError reference, which the method sets if it can’t convert the value parameter into a classification. You can pass nil if you don’t want to receive error information.

## Return Value

Return Value Returns true if the method successfully classified the value. If an error occurred, it returns false.

## Discussion

Discussion Use this method to get the Walking Steadiness classification for an appleWalkingSteadiness sample.

## See Also

### Walking steadiness classifications

- [HKAppleWalkingSteadinessClassification](healthkit/hkapplewalkingsteadinessclassification.md)
- [HKAppleWalkingSteadinessMaximumQuantityForClassification](healthkit/hkapplewalkingsteadinessmaximumquantityforclassification.md)
- [HKAppleWalkingSteadinessMinimumQuantityForClassification](healthkit/hkapplewalkingsteadinessminimumquantityforclassification.md)
