HealthPermissions
class HealthPermissions
kotlin.Any | |
↳ | android.health.connect.HealthPermissions |
Permissions for accessing the HealthConnect APIs.
Apps must support android.content.Intent#ACTION_VIEW_PERMISSION_USAGE
with android.health.connect.HealthConnectManager#CATEGORY_HEALTH_PERMISSIONS
category to be granted read/write health data permissions.
Summary
Constants | |
---|---|
static String |
Allows an application to read the user's active calories burned data. |
static String |
Allows an application to read the user's body temperature data. |
static String |
Allows an application to read the user's basal metabolic rate data. |
static String |
Allows an application to read the user's blood glucose data. |
static String |
Allows an application to read the user's blood pressure data. |
static String |
Allows an application to read the user's body fat data. |
static String |
Allows an application to read the user's body temperature data. |
static String |
Allows an application to read the user's body water mass data. |
static String |
Allows an application to read the user's bone mass data. |
static String |
Allows an application to read the user's cervical mucus data. |
static String |
Allows an application to read the user's distance data. |
static String |
Allows an application to read the user's elevation gained data. |
static String |
Allows an application to read the user's exercise data. |
static String |
Allows an application to read |
static String |
Allows an application to read the user's floors climbed data. |
static String |
Allows an application to read the entire history of health data (of any type). |
static String |
Allows an application to read health data (of any type) in background. |
static String |
Allows an application to read the user's heart rate data. |
static String |
Allows an application to read the user's heart rate variability data. |
static String |
Allows an application to read the user's height data. |
static String |
Allows an application to read the user's hydration data. |
static String |
Allows an application to read the user's intermenstrual bleeding data. |
static String |
Allows an application to read the user's lean body mass data. |
static String |
Allows an application to read the user's menstruation data. |
static String |
Allows an application to read the user's nutrition data. |
static String |
Allows an application to read the user's ovulation test data. |
static String |
Allows an application to read the user's oxygen saturation data. |
static String |
Allows an application to read the user's training plan data. |
static String |
Allows an application to read the user's power data. |
static String |
Allows an application to read the user's respiratory rate data. |
static String |
Allows an application to read the user's resting heart rate data. |
static String |
Allows an application to read the user's sexual activity data. |
static String |
Allows an application to read the user's skin temperature data. |
static String |
Allows an application to read the user's sleep data. |
static String |
Allows an application to read the user's speed data. |
static String |
Allows an application to read the user's steps data. |
static String |
Allows an application to read the user's total calories burned data. |
static String |
Allows an application to read the user's vo2 maximum data. |
static String |
Allows an application to read the user's weight data. |
static String |
Allows an application to read the user's wheelchair pushes data. |
static String |
Allows an application to write the user's calories burned data. |
static String |
Allows an application to write the user's basal body temperature data. |
static String |
Allows an application to write the user's basal metabolic rate data. |
static String |
Allows an application to write the user's blood glucose data. |
static String |
Allows an application to write the user's blood pressure data. |
static String |
Allows an application to write the user's body fat data. |
static String |
Allows an application to write the user's body temperature data. |
static String |
Allows an application to write the user's body water mass data. |
static String |
Allows an application to write the user's bone mass data. |
static String |
Allows an application to write the user's cervical mucus data. |
static String |
Allows an application to write the user's distance data. |
static String |
Allows an application to write the user's elevation gained data. |
static String |
Allows an application to write the user's exercise data. |
static String |
Allows an application to write the user's exercise route. |
static String |
Allows an application to write the user's floors climbed data. |
static String |
Allows an application to write the user's heart rate data. |
static String |
Allows an application to write the user's heart rate variability data. |
static String |
Allows an application to write the user's height data. |
static String |
Allows an application to write the user's hydration data. |
static String |
Allows an application to write the user's intermenstrual bleeding data. |
static String |
Allows an application to write the user's lean body mass data. |
static String |
Allows an application to write the user's menstruation data. |
static String |
Allows an application to write the user's nutrition data. |
static String |
Allows an application to write the user's ovulation test data. |
static String |
Allows an application to write the user's oxygen saturation data. |
static String |
Allows an application to write the user's training plan data. |
static String |
Allows an application to write the user's power data. |
static String |
Allows an application to write the user's respiratory rate data. |
static String |
Allows an application to write the user's resting heart rate data. |
static String |
Allows an application to write the user's sexual activity data. |
static String |
Allows an application to write the user's skin temperature data. |
static String |
Allows an application to write the user's sleep data. |
static String |
Allows an application to write the user's speed data. |
static String |
Allows an application to write the user's steps data. |
static String |
Allows an application to write the user's total calories burned data. |
static String |
Allows an application to write the user's vo2 maximum data. |
static String |
Allows an application to write the user's weight data. |
static String |
Allows an application to write the user's wheelchair pushes data. |
Constants
READ_ACTIVE_CALORIES_BURNED
static val READ_ACTIVE_CALORIES_BURNED: String
Allows an application to read the user's active calories burned data.
Protection level: dangerous.
Value: "android.permission.health.READ_ACTIVE_CALORIES_BURNED"
READ_BASAL_BODY_TEMPERATURE
static val READ_BASAL_BODY_TEMPERATURE: String
Allows an application to read the user's body temperature data.
Protection level: dangerous.
Value: "android.permission.health.READ_BASAL_BODY_TEMPERATURE"
READ_BASAL_METABOLIC_RATE
static val READ_BASAL_METABOLIC_RATE: String
Allows an application to read the user's basal metabolic rate data.
Protection level: dangerous.
Value: "android.permission.health.READ_BASAL_METABOLIC_RATE"
READ_BLOOD_GLUCOSE
static val READ_BLOOD_GLUCOSE: String
Allows an application to read the user's blood glucose data.
Protection level: dangerous.
Value: "android.permission.health.READ_BLOOD_GLUCOSE"
READ_BLOOD_PRESSURE
static val READ_BLOOD_PRESSURE: String
Allows an application to read the user's blood pressure data.
Protection level: dangerous.
Value: "android.permission.health.READ_BLOOD_PRESSURE"
READ_BODY_FAT
static val READ_BODY_FAT: String
Allows an application to read the user's body fat data.
Protection level: dangerous.
Value: "android.permission.health.READ_BODY_FAT"
READ_BODY_TEMPERATURE
static val READ_BODY_TEMPERATURE: String
Allows an application to read the user's body temperature data.
Protection level: dangerous.
Value: "android.permission.health.READ_BODY_TEMPERATURE"
READ_BODY_WATER_MASS
static val READ_BODY_WATER_MASS: String
Allows an application to read the user's body water mass data.
Protection level: dangerous.
Value: "android.permission.health.READ_BODY_WATER_MASS"
READ_BONE_MASS
static val READ_BONE_MASS: String
Allows an application to read the user's bone mass data.
Protection level: dangerous.
Value: "android.permission.health.READ_BONE_MASS"
READ_CERVICAL_MUCUS
static val READ_CERVICAL_MUCUS: String
Allows an application to read the user's cervical mucus data.
Protection level: dangerous.
Value: "android.permission.health.READ_CERVICAL_MUCUS"
READ_DISTANCE
static val READ_DISTANCE: String
Allows an application to read the user's distance data.
Protection level: dangerous.
Value: "android.permission.health.READ_DISTANCE"
READ_ELEVATION_GAINED
static val READ_ELEVATION_GAINED: String
Allows an application to read the user's elevation gained data.
Protection level: dangerous.
Value: "android.permission.health.READ_ELEVATION_GAINED"
READ_EXERCISE
static val READ_EXERCISE: String
Allows an application to read the user's exercise data.
Protection level: dangerous.
Value: "android.permission.health.READ_EXERCISE"
READ_EXERCISE_ROUTES
static val READ_EXERCISE_ROUTES: String
Allows an application to read ExerciseRoute
.
This permission can only be granted manually by a user in Health Connect settings or in the route request activity which can be launched using ACTION_REQUEST_EXERCISE_ROUTE. Attempts to request the permission by applications will be ignored.
Applications should check if the permission has been granted before reading ExerciseRoute
.
Protection level: dangerous.
Value: "android.permission.health.READ_EXERCISE_ROUTES"
READ_FLOORS_CLIMBED
static val READ_FLOORS_CLIMBED: String
Allows an application to read the user's floors climbed data.
Protection level: dangerous.
Value: "android.permission.health.READ_FLOORS_CLIMBED"
READ_HEALTH_DATA_HISTORY
static val READ_HEALTH_DATA_HISTORY: String
Allows an application to read the entire history of health data (of any type).
Protection level: dangerous.
Value: "android.permission.health.READ_HEALTH_DATA_HISTORY"
READ_HEALTH_DATA_IN_BACKGROUND
static val READ_HEALTH_DATA_IN_BACKGROUND: String
Allows an application to read health data (of any type) in background.
Protection level: dangerous.
Value: "android.permission.health.READ_HEALTH_DATA_IN_BACKGROUND"
READ_HEART_RATE
static val READ_HEART_RATE: String
Allows an application to read the user's heart rate data.
Protection level: dangerous.
Value: "android.permission.health.READ_HEART_RATE"
READ_HEART_RATE_VARIABILITY
static val READ_HEART_RATE_VARIABILITY: String
Allows an application to read the user's heart rate variability data.
Protection level: dangerous.
Value: "android.permission.health.READ_HEART_RATE_VARIABILITY"
READ_HEIGHT
static val READ_HEIGHT: String
Allows an application to read the user's height data.
Protection level: dangerous.
Value: "android.permission.health.READ_HEIGHT"
READ_HYDRATION
static val READ_HYDRATION: String
Allows an application to read the user's hydration data.
Protection level: dangerous.
Value: "android.permission.health.READ_HYDRATION"
READ_INTERMENSTRUAL_BLEEDING
static val READ_INTERMENSTRUAL_BLEEDING: String
Allows an application to read the user's intermenstrual bleeding data.
Protection level: dangerous.
Value: "android.permission.health.READ_INTERMENSTRUAL_BLEEDING"
READ_LEAN_BODY_MASS
static val READ_LEAN_BODY_MASS: String
Allows an application to read the user's lean body mass data.
Protection level: dangerous.
Value: "android.permission.health.READ_LEAN_BODY_MASS"
READ_MENSTRUATION
static val READ_MENSTRUATION: String
Allows an application to read the user's menstruation data.
Protection level: dangerous.
Value: "android.permission.health.READ_MENSTRUATION"
READ_NUTRITION
static val READ_NUTRITION: String
Allows an application to read the user's nutrition data.
Protection level: dangerous.
Value: "android.permission.health.READ_NUTRITION"
READ_OVULATION_TEST
static val READ_OVULATION_TEST: String
Allows an application to read the user's ovulation test data.
Protection level: dangerous.
Value: "android.permission.health.READ_OVULATION_TEST"
READ_OXYGEN_SATURATION
static val READ_OXYGEN_SATURATION: String
Allows an application to read the user's oxygen saturation data.
Protection level: dangerous.
Value: "android.permission.health.READ_OXYGEN_SATURATION"
READ_PLANNED_EXERCISE
static val READ_PLANNED_EXERCISE: String
Allows an application to read the user's training plan data.
Protection level: dangerous.
Value: "android.permission.health.READ_PLANNED_EXERCISE"
READ_POWER
static val READ_POWER: String
Allows an application to read the user's power data.
Protection level: dangerous.
Value: "android.permission.health.READ_POWER"
READ_RESPIRATORY_RATE
static val READ_RESPIRATORY_RATE: String
Allows an application to read the user's respiratory rate data.
Protection level: dangerous.
Value: "android.permission.health.READ_RESPIRATORY_RATE"
READ_RESTING_HEART_RATE
static val READ_RESTING_HEART_RATE: String
Allows an application to read the user's resting heart rate data.
Protection level: dangerous.
Value: "android.permission.health.READ_RESTING_HEART_RATE"
READ_SEXUAL_ACTIVITY
static val READ_SEXUAL_ACTIVITY: String
Allows an application to read the user's sexual activity data.
Protection level: dangerous.
Value: "android.permission.health.READ_SEXUAL_ACTIVITY"
READ_SKIN_TEMPERATURE
static val READ_SKIN_TEMPERATURE: String
Allows an application to read the user's skin temperature data.
Protection level: dangerous.
Value: "android.permission.health.READ_SKIN_TEMPERATURE"
READ_SLEEP
static val READ_SLEEP: String
Allows an application to read the user's sleep data.
Protection level: dangerous.
Value: "android.permission.health.READ_SLEEP"
READ_SPEED
static val READ_SPEED: String
Allows an application to read the user's speed data.
Protection level: dangerous.
Value: "android.permission.health.READ_SPEED"
READ_STEPS
static val READ_STEPS: String
Allows an application to read the user's steps data.
Protection level: dangerous.
Value: "android.permission.health.READ_STEPS"
READ_TOTAL_CALORIES_BURNED
static val READ_TOTAL_CALORIES_BURNED: String
Allows an application to read the user's total calories burned data.
Protection level: dangerous.
Value: "android.permission.health.READ_TOTAL_CALORIES_BURNED"
READ_VO2_MAX
static val READ_VO2_MAX: String
Allows an application to read the user's vo2 maximum data.
Protection level: dangerous.
Value: "android.permission.health.READ_VO2_MAX"
READ_WEIGHT
static val READ_WEIGHT: String
Allows an application to read the user's weight data.
Protection level: dangerous.
Value: "android.permission.health.READ_WEIGHT"
READ_WHEELCHAIR_PUSHES
static val READ_WHEELCHAIR_PUSHES: String
Allows an application to read the user's wheelchair pushes data.
Protection level: dangerous.
Value: "android.permission.health.READ_WHEELCHAIR_PUSHES"
WRITE_ACTIVE_CALORIES_BURNED
static val WRITE_ACTIVE_CALORIES_BURNED: String
Allows an application to write the user's calories burned data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_ACTIVE_CALORIES_BURNED"
WRITE_BASAL_BODY_TEMPERATURE
static val WRITE_BASAL_BODY_TEMPERATURE: String
Allows an application to write the user's basal body temperature data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_BASAL_BODY_TEMPERATURE"
WRITE_BASAL_METABOLIC_RATE
static val WRITE_BASAL_METABOLIC_RATE: String
Allows an application to write the user's basal metabolic rate data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_BASAL_METABOLIC_RATE"
WRITE_BLOOD_GLUCOSE
static val WRITE_BLOOD_GLUCOSE: String
Allows an application to write the user's blood glucose data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_BLOOD_GLUCOSE"
WRITE_BLOOD_PRESSURE
static val WRITE_BLOOD_PRESSURE: String
Allows an application to write the user's blood pressure data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_BLOOD_PRESSURE"
WRITE_BODY_FAT
static val WRITE_BODY_FAT: String
Allows an application to write the user's body fat data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_BODY_FAT"
WRITE_BODY_TEMPERATURE
static val WRITE_BODY_TEMPERATURE: String
Allows an application to write the user's body temperature data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_BODY_TEMPERATURE"
WRITE_BODY_WATER_MASS
static val WRITE_BODY_WATER_MASS: String
Allows an application to write the user's body water mass data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_BODY_WATER_MASS"
WRITE_BONE_MASS
static val WRITE_BONE_MASS: String
Allows an application to write the user's bone mass data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_BONE_MASS"
WRITE_CERVICAL_MUCUS
static val WRITE_CERVICAL_MUCUS: String
Allows an application to write the user's cervical mucus data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_CERVICAL_MUCUS"
WRITE_DISTANCE
static val WRITE_DISTANCE: String
Allows an application to write the user's distance data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_DISTANCE"
WRITE_ELEVATION_GAINED
static val WRITE_ELEVATION_GAINED: String
Allows an application to write the user's elevation gained data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_ELEVATION_GAINED"
WRITE_EXERCISE
static val WRITE_EXERCISE: String
Allows an application to write the user's exercise data. Additional permission android.health.connect.HealthPermissions#WRITE_EXERCISE_ROUTE
is required to write user's exercise route.
Protection level: dangerous.
Value: "android.permission.health.WRITE_EXERCISE"
WRITE_EXERCISE_ROUTE
static val WRITE_EXERCISE_ROUTE: String
Allows an application to write the user's exercise route.
Protection level: dangerous.
Value: "android.permission.health.WRITE_EXERCISE_ROUTE"
WRITE_FLOORS_CLIMBED
static val WRITE_FLOORS_CLIMBED: String
Allows an application to write the user's floors climbed data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_FLOORS_CLIMBED"
WRITE_HEART_RATE
static val WRITE_HEART_RATE: String
Allows an application to write the user's heart rate data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_HEART_RATE"
WRITE_HEART_RATE_VARIABILITY
static val WRITE_HEART_RATE_VARIABILITY: String
Allows an application to write the user's heart rate variability data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_HEART_RATE_VARIABILITY"
WRITE_HEIGHT
static val WRITE_HEIGHT: String
Allows an application to write the user's height data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_HEIGHT"
WRITE_HYDRATION
static val WRITE_HYDRATION: String
Allows an application to write the user's hydration data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_HYDRATION"
WRITE_INTERMENSTRUAL_BLEEDING
static val WRITE_INTERMENSTRUAL_BLEEDING: String
Allows an application to write the user's intermenstrual bleeding data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_INTERMENSTRUAL_BLEEDING"
WRITE_LEAN_BODY_MASS
static val WRITE_LEAN_BODY_MASS: String
Allows an application to write the user's lean body mass data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_LEAN_BODY_MASS"
WRITE_MENSTRUATION
static val WRITE_MENSTRUATION: String
Allows an application to write the user's menstruation data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_MENSTRUATION"
WRITE_NUTRITION
static val WRITE_NUTRITION: String
Allows an application to write the user's nutrition data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_NUTRITION"
WRITE_OVULATION_TEST
static val WRITE_OVULATION_TEST: String
Allows an application to write the user's ovulation test data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_OVULATION_TEST"
WRITE_OXYGEN_SATURATION
static val WRITE_OXYGEN_SATURATION: String
Allows an application to write the user's oxygen saturation data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_OXYGEN_SATURATION"
WRITE_PLANNED_EXERCISE
static val WRITE_PLANNED_EXERCISE: String
Allows an application to write the user's training plan data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_PLANNED_EXERCISE"
WRITE_POWER
static val WRITE_POWER: String
Allows an application to write the user's power data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_POWER"
WRITE_RESPIRATORY_RATE
static val WRITE_RESPIRATORY_RATE: String
Allows an application to write the user's respiratory rate data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_RESPIRATORY_RATE"
WRITE_RESTING_HEART_RATE
static val WRITE_RESTING_HEART_RATE: String
Allows an application to write the user's resting heart rate data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_RESTING_HEART_RATE"
WRITE_SEXUAL_ACTIVITY
static val WRITE_SEXUAL_ACTIVITY: String
Allows an application to write the user's sexual activity data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_SEXUAL_ACTIVITY"
WRITE_SKIN_TEMPERATURE
static val WRITE_SKIN_TEMPERATURE: String
Allows an application to write the user's skin temperature data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_SKIN_TEMPERATURE"
WRITE_SLEEP
static val WRITE_SLEEP: String
Allows an application to write the user's sleep data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_SLEEP"
WRITE_SPEED
static val WRITE_SPEED: String
Allows an application to write the user's speed data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_SPEED"
WRITE_STEPS
static val WRITE_STEPS: String
Allows an application to write the user's steps data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_STEPS"
WRITE_TOTAL_CALORIES_BURNED
static val WRITE_TOTAL_CALORIES_BURNED: String
Allows an application to write the user's total calories burned data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_TOTAL_CALORIES_BURNED"
WRITE_VO2_MAX
static val WRITE_VO2_MAX: String
Allows an application to write the user's vo2 maximum data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_VO2_MAX"
WRITE_WEIGHT
static val WRITE_WEIGHT: String
Allows an application to write the user's weight data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_WEIGHT"
WRITE_WHEELCHAIR_PUSHES
static val WRITE_WHEELCHAIR_PUSHES: String
Allows an application to write the user's wheelchair pushes data.
Protection level: dangerous.
Value: "android.permission.health.WRITE_WHEELCHAIR_PUSHES"