Mindfulness Session
data class MindfulnessSession(val startTimeIso: String, val endTimeIso: String, val startTimeEpochSeconds: Long, val endTimeEpochSeconds: Long, val durationMinutes: Double, val sourceName: String? = null)
A single mindfulness / meditation session, pulled from HealthKit's HKCategoryTypeIdentifierMindfulSession on iOS. Android Health Connect does not yet have a native mindful-session record; the Android actual returns an empty list.
Constructors
Properties
Link copied to clipboard
Length of the session in minutes.
Link copied to clipboard
Session end as Unix epoch seconds.
Link copied to clipboard
Session end as an ISO-8601 UTC string.
Link copied to clipboard
Human-friendly app or device that recorded the session (e.g. "Calm", "Headspace", "Mindfulness"), or null when unavailable.
Link copied to clipboard
Session start as Unix epoch seconds — convenient for building a Swift Date(timeIntervalSince1970:) directly.
Link copied to clipboard
Session start as an ISO-8601 UTC string (e.g. "2026-05-17T07:30:00Z").