Added in API level 34

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 the user's floors climbed data.

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 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 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 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 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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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_FLOORS_CLIMBED

Added in API level 34
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_HEART_RATE

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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_POWER

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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_SLEEP

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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_POWER

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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_SLEEP

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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

Added in API level 34
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"