焦虑和压力数据
Asked on 06/17/2025
2 searches
The session titled "Explore wellbeing APIs in HealthKit" at WWDC 2024 introduced new APIs related to mental health, specifically focusing on anxiety and stress data. The session discussed the GaD-7 and PHQ-9 standardized questionnaires, which are used globally for mental health screening. These questionnaires assess a person's risk of anxiety and depression, respectively. The session also introduced the concept of "state of mind," which allows individuals to log their mood and emotions, providing a way to track mental wellbeing over time.
For more detailed information, you can refer to the session Explore wellbeing APIs in HealthKit (00:01:28) where mental wellbeing APIs are discussed.

Explore wellbeing APIs in HealthKit
Learn how to incorporate mental health and wellbeing into your app using HealthKit. There are new APIs for State of Mind, as well as for Depression Risk and Anxiety Risk. We’ll dive into principles of emotion science to cover how reflecting on feelings can be beneficial, and how State of Mind can be used to represent different types of mood and emotion.

Analyze heap memory
Dive into the basis for your app’s dynamic memory: the heap! Explore how to use Instruments and Xcode to measure, analyze, and fix common heap issues. We’ll also cover some techniques and best practices for diagnosing transient growth, persistent growth, and leaks in your app.

Enhanced suggestions for your journaling app
Find out how your journaling app can display journaling suggestions with richer content from the system. Explore new types of available content like state of mind data, reflection prompts, and support for third-party media content and motion-based activities.