【问题标题】:Is it possible to get the current healthkit status of an iOS user?是否可以获取 iOS 用户当前的 healthkit 状态?
【发布时间】:2015-06-02 22:19:40
【问题描述】:

例如,如果我想在用户步行/跑步/久坐/骑自行车/等时做出响应,这在当前的 SDK 中是否可行?

【问题讨论】:

    标签: ios core-motion healthkit


    【解决方案1】:

    幸运地得到了答案。在CMMotionActivityManager:

    CMMotionActivityManager 类提供对设备存储的运动数据的访问。运动数据反映用户是在步行、跑步、在车辆中还是静止一段时间。导航应用可能会寻找当前运动类型的变化,并为每个变化提供不同的方向。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-01-22
      • 2022-09-23
      • 1970-01-01
      • 2014-03-24
      • 2017-03-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多