Mantas Vidutis
Mantas Vidutis

Reputation: 16794

Is it possible to get the current healthkit status of an iOS user?

For instance if I wanted to respond to when a user was walking/running/sedentary/bicycle/etc is that possible in current SDKs?

Upvotes: 0

Views: 224

Answers (1)

Mantas Vidutis
Mantas Vidutis

Reputation: 16794

Lucked upon the answer. In CMMotionActivityManager:

The CMMotionActivityManager class provides access to the motion data stored by a device. Motion data reflects whether the user is walking, running, in a vehicle, or stationary for periods of time. A navigation app might look for changes in the current type of motion and offer different directions for each.

Upvotes: 2

Related Questions