Values that indicate the user’s level of activity when the heart rate sample was measured.


enum HKHeartRateMotionContext : Int


Motion Contextes

case active

A value indicating that the user was in motion during the heart rate sample.

case notSet

A value indicating that the user’s activity level could not be determined.

case sedentary

A value indicating that the user has been still for at least 5 minutes prior to the heart rate sample.

See Also

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software