HKAppleWalkingSteadinessClassificationForQuantity
Provides a classification for a score that measures the steadiness of the user’s gait.
Declaration
extern BOOL HKAppleWalkingSteadinessClassificationForQuantity(HKQuantity *value, HKAppleWalkingSteadinessClassification *classificationOut, NSError **errorOut);Parameters
- value:
An Hkquantity instance that contains a percentage value between
0.0and1.0. Use the Hkunit class’s Percent() method to define the units for these values. - classificationOut:
A Hkapplewalkingsteadinessclassificationforquantity reference, which the method sets if the classification is successful.
- errorOut:
A Nserror reference, which the method sets if it can’t convert the
valueparameter into a classification. You can passnilif you don’t want to receive error information.
Return Value
Returns true if the method successfully classified the value. If an error occurred, it returns false.
Discussion
Use this method to get the Walking Steadiness classification for an appleWalkingSteadiness sample.