apple-watch - Apple Watch 事件应用程序 API

标签 apple-watch healthkit

“事件”应用程序是否有 API?例如,我想从应用程序的“锻炼”部分检索信息(您燃烧的卡路里),我想检索您第一次打开应用程序时输入的个人信息。那可能吗?我如何检索这些信息?

最佳答案

没有专门针对事件应用程序的 API。但是,您可以使用 HealthKit 框架访问它显示的大部分信息。查看文档 here .

关于apple-watch - Apple Watch 事件应用程序 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29997538/

相关文章:

ios - 是否可以在 Watchkit 扩展中读取或写入步骤?

swift - HealthKit 错误 : Missing com. apple.developer.healthkit 权利

swift - HealthKit – 如何获取分段距离(每公里)的运行事件?

ios - 是否可以从 Apple Watch 应用程序中知道主机应用程序是否在前台?

ios - 如何在 Apple Watch 项目上获取页面点

ios - 有没有办法隐藏Apple Watch中的默认事件指示器?

location - 我可以让 Watch 应用在后台运行吗?

swift - HealthKit(打开 optional 时意外发现 nil)

ios - HKSampleQuery 不返回任何结果,即使有

ios - iOS 12 应用程序扩展可以写入 Healthkit