Post

Replies

Boosts

Views

Activity

Recommended HealthKit representation for self-reported focus sessions?
We ship a focus timer where every session is user-initiated: the user deliberately starts a 25- or 45-minute session, then it's logged. We'd like that focused time to live in the user's health picture alongside sleep, exercise, and State of Mind, as self-reported context — the same standing as manually entered steps, and never inferred from device usage. The nearest interval type today is HKCategoryTypeIdentifier.mindfulSession, but its semantics are meditation. Is writing focused-work intervals to mindfulSession considered a misuse of the type? And if so, what's the recommended way to represent self-reported focus time until a dedicated type exists?
1
0
71
2d
Recommended HealthKit representation for self-reported focus sessions?
We ship a focus timer where every session is user-initiated: the user deliberately starts a 25- or 45-minute session, then it's logged. We'd like that focused time to live in the user's health picture alongside sleep, exercise, and State of Mind, as self-reported context — the same standing as manually entered steps, and never inferred from device usage. The nearest interval type today is HKCategoryTypeIdentifier.mindfulSession, but its semantics are meditation. Is writing focused-work intervals to mindfulSession considered a misuse of the type? And if so, what's the recommended way to represent self-reported focus time until a dedicated type exists?
Replies
1
Boosts
0
Views
71
Activity
2d