简体   繁体   English

如何在目标C中向iOS Healthkit应用添加注意力记录?

[英]How to add mindful minutes to iOS healthkit app in objective C?

I'm tyng to create a simple cordova plugin using objective c. 我打算使用目标c创建一个简单的cordova插件。

the purpose of this plugin is to add mindful minutes to the ios healthkit via the app. 这个插件的目的是通过应用程序为ios healthkit添加注意的时间。

Now, I found a few tutorials on how to add mindful minutes to the healthkit ap via Swift like this one: https://www.freecodecamp.org/news/read-write-mindful-minutes-from-healthkit-with-swift-232b65118fe2/ 现在,我发现了一些关于如何通过Swift这样的方式在Healthkit ap上增加注意分钟的教程: https ://www.freecodecamp.org/news/read-write-mindful-minutes-from-healthkit-with-swift -232b65118fe2 /

but I need to do this in objective C... However, I cannot find any tutorials on how to do this! 但是我需要在目标C中执行此操作。但是,我找不到有关如何执行此操作的任何教程!

Could someone please advice on this issue of point me in a right direction? 有人可以在这个问题上给我一些建议吗?

PS I'm a beginner in swift and objective c. PS我是快速而客观的c的初学者。

I have found this StackOverflow article which linked to this . 我找到了与链接的StackOverflow文章 Here is the full reference for the health kit . 这是健康包的完整参考。

I couldn't find any tutorials but the link points to using the HKCategoryTypeIdentifierMindfulSession variable. 我找不到任何教程,但是链接指向使用HKCategoryTypeIdentifierMindfulSession变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM