Package-level declarations
Types
Represents a self-assessed description (look and feel) of the cervical mucus for a user.
Represents a single measurement of KHRecord.CyclingPedalingCadence.
KHealth is a Kotlin Multiplatform wrapper around Android's Health Connect and Apple's HealthKit APIs. It provides a set of convenient properties and methods to perform most common operations easily (like checking/requesting permissions, reading/writing data, and more).
Automatically initializes KHealthContext with the application context upon app launch.
Depicts the category of KHRecord.Exercise that the user is performing.
Represents a single measurement of the heart rate (KHRecord.HeartRate).
The type of food that the KHRecord.Nutrition object represents.
Refers to the pattern or characteristics of menstrual bleeding, such as light, moderate, or heavy flow, and its duration and consistency throughout the cycle.
An ovulation test checks for a rise in a hormone called luteinizing hormone (LH) in your urine, which happens just before ovulation.
Depicts an instance of the app's request to the operating system to provide it with the access to read and/or write a particular kind of data from/to the health store.
Represents a single measurement of power. For example, using a power meter when exercising on a stationary bike.
Represents the kind of KHRecord the app wants to read.
Captures the sleep stage the user entered during a sleep session.
Represents a single measurement of KHRecord.SleepSession.
Represents a single measurement of the speed, a scalar magnitude.
Depicts the kind of response from the health store when a KHRecord is written onto it. The transaction can either Success completely, Fail completely, or Fail partially.
Functions
Checks whether all requested permissions in permissions are granted in this set.
Factory function to create a KHealth instance in common code.
Checks directly on KHealth if a specific permission is granted.
Checks directly on KHealth if all specified permissions are granted.
Checks whether the given permission is granted in this Set of permissions.
Creates a KHealth instance on Android using auto-detected application context.
Creates a KHealth instance on Android bound to the given ComponentActivity.
Checks whether this granted permission satisfies all requested capabilities in requested.