androidx.health.connect.client.units


Classes

BloodGlucose

Represents a unit of blood glucose level (glycaemia).

Energy

Represents a unit of energy.

Length

Represents a unit of length.

Mass

Represents a unit of mass.

Percentage

Represents a value as a percentage, not a fraction - for example 100%, 89.62%, etc.

Power

Represents a unit of power.

Pressure

Represents a unit of pressure.

Temperature

Represents a unit of temperature.

TemperatureDelta

Represents a unit of TemperatureDelta difference.

Velocity

Represents a unit of speed.

Volume

Represents a unit of volume.

Extension properties summary

Energy

Creates Energy with the specified value in calories.

Energy

Creates Energy with the specified value in calories.

Energy

Creates Energy with the specified value in calories.

Energy

Creates Energy with the specified value in calories.

Temperature

Creates Temperature with the specified value in Celsius degrees.

Temperature

Creates Temperature with the specified value in Celsius degrees.

Temperature

Creates Temperature with the specified value in Celsius degrees.

Temperature

Creates Temperature with the specified value in Celsius degrees.

Temperature

Creates Temperature with the specified value in Fahrenheit degrees.

Temperature

Creates Temperature with the specified value in Fahrenheit degrees.

Temperature

Creates Temperature with the specified value in Fahrenheit degrees.

Temperature

Creates Temperature with the specified value in Fahrenheit degrees.

Length

Creates Length with the specified value in feet.

Length

Creates Length with the specified value in feet.

Length

Creates Length with the specified value in feet.

Length

Creates Length with the specified value in feet.

Volume

Creates Volume with the specified value in US fluid ounces.

Volume

Creates Volume with the specified value in US fluid ounces.

Volume

Creates Volume with the specified value in US fluid ounces.

Volume

Creates Volume with the specified value in US fluid ounces.

Mass

Creates Mass with the specified value in grams.

Mass

Creates Mass with the specified value in grams.

Mass

Creates Mass with the specified value in grams.

Mass

Creates Mass with the specified value in grams.

Length

Creates Length with the specified value in inches.

Length

Creates Length with the specified value in inches.

Length

Creates Length with the specified value in inches.

Length

Creates Length with the specified value in inches.

Energy

Creates Energy with the specified value in joules.

Energy

Creates Energy with the specified value in joules.

Energy

Creates Energy with the specified value in joules.

Energy

Creates Energy with the specified value in joules.

Energy

Creates Energy with the specified value in kilocalories.

Energy

Creates Energy with the specified value in kilocalories.

Energy

Creates Energy with the specified value in kilocalories.

Energy

Creates Energy with the specified value in kilocalories.

Power

Creates Power with the specified value in kilocalories/day.

Power

Creates Power with the specified value in kilocalories/day.

Power

Creates Power with the specified value in kilocalories/day.

Power

Creates Power with the specified value in kilocalories/day.

Mass

Creates Mass with the specified value in kilograms.

Mass

Creates Mass with the specified value in kilograms.

Mass

Creates Mass with the specified value in kilograms.

Mass

Creates Mass with the specified value in kilograms.

Energy

Creates Energy with the specified value in kilojoules.

Energy

Creates Energy with the specified value in kilojoules.

Energy

Creates Energy with the specified value in kilojoules.

Energy

Creates Energy with the specified value in kilojoules.

Length

Creates Length with the specified value in kilometers.

Length

Creates Length with the specified value in kilometers.

Length

Creates Length with the specified value in kilometers.

Length

Creates Length with the specified value in kilometers.

Velocity

Creates Velocity with the specified value in kilometers per hour.

Velocity

Creates Velocity with the specified value in kilometers per hour.

Velocity

Creates Velocity with the specified value in kilometers per hour.

Velocity

Creates Velocity with the specified value in kilometers per hour.

Volume

Creates Volume with the specified value in liters.

Volume

Creates Volume with the specified value in liters.

Volume

Creates Volume with the specified value in liters.

Volume

Creates Volume with the specified value in liters.

Length

Creates Length with the specified value in meters.

Length

Creates Length with the specified value in meters.

Length

Creates Length with the specified value in meters.

Length

Creates Length with the specified value in meters.

Velocity

Creates Velocity with the specified value in meters per second.

Velocity

Creates Velocity with the specified value in meters per second.

Velocity

Creates Velocity with the specified value in meters per second.

Velocity

Creates Velocity with the specified value in meters per second.

Mass

Creates Mass with the specified value in micrograms.

Mass

Creates Mass with the specified value in micrograms.

Mass

Creates Mass with the specified value in micrograms.

Mass

Creates Mass with the specified value in micrograms.

Length

Creates Length with the specified value in miles.

Length

Creates Length with the specified value in miles.

Length

Creates Length with the specified value in miles.

Length

Creates Length with the specified value in miles.

Velocity

Creates Velocity with the specified value in miles per hour.

Velocity

Creates Velocity with the specified value in miles per hour.

Velocity

Creates Velocity with the specified value in miles per hour.

Velocity

Creates Velocity with the specified value in miles per hour.

Mass

Creates Mass with the specified value in milligrams.

Mass

Creates Mass with the specified value in milligrams.

Mass

Creates Mass with the specified value in milligrams.

Mass

Creates Mass with the specified value in milligrams.

Volume

Creates Volume with the specified value in milliliters.

Volume

Creates Volume with the specified value in milliliters.

Volume

Creates Volume with the specified value in milliliters.

Volume

Creates Volume with the specified value in milliliters.

Pressure

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

Pressure

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

Pressure

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

Pressure

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

Mass

Creates Mass with the specified value in ounces.

Mass

Creates Mass with the specified value in ounces.

Mass

Creates Mass with the specified value in ounces.

Mass

Creates Mass with the specified value in ounces.

Percentage

Creates Percentage with the specified percentage value, not a fraction.

Percentage

Creates Percentage with the specified percentage value, not a fraction.

Percentage

Creates Percentage with the specified percentage value, not a fraction.

Percentage

Creates Percentage with the specified percentage value, not a fraction.

Mass

Creates Mass with the specified value in pounds.

Mass

Creates Mass with the specified value in pounds.

Mass

Creates Mass with the specified value in pounds.

Mass

Creates Mass with the specified value in pounds.

Power

Creates Power with the specified value in Watts.

Power

Creates Power with the specified value in Watts.

Power

Creates Power with the specified value in Watts.

Power

Creates Power with the specified value in Watts.

Extension properties

val Double.calories: Energy

Creates Energy with the specified value in calories.

val Float.calories: Energy

Creates Energy with the specified value in calories.

val Int.calories: Energy

Creates Energy with the specified value in calories.

val Long.calories: Energy

Creates Energy with the specified value in calories.

val Double.celsius: Temperature

Creates Temperature with the specified value in Celsius degrees.

val Float.celsius: Temperature

Creates Temperature with the specified value in Celsius degrees.

val Int.celsius: Temperature

Creates Temperature with the specified value in Celsius degrees.

val Long.celsius: Temperature

Creates Temperature with the specified value in Celsius degrees.

val Double.fahrenheit: Temperature

Creates Temperature with the specified value in Fahrenheit degrees.

val Float.fahrenheit: Temperature

Creates Temperature with the specified value in Fahrenheit degrees.

val Int.fahrenheit: Temperature

Creates Temperature with the specified value in Fahrenheit degrees.

val Long.fahrenheit: Temperature

Creates Temperature with the specified value in Fahrenheit degrees.

val Double.feet: Length

Creates Length with the specified value in feet.

val Float.feet: Length

Creates Length with the specified value in feet.

val Int.feet: Length

Creates Length with the specified value in feet.

val Long.feet: Length

Creates Length with the specified value in feet.

Double.fluidOuncesUs

val Double.fluidOuncesUs: Volume

Creates Volume with the specified value in US fluid ounces.

Float.fluidOuncesUs

val Float.fluidOuncesUs: Volume

Creates Volume with the specified value in US fluid ounces.

val Int.fluidOuncesUs: Volume

Creates Volume with the specified value in US fluid ounces.

Long.fluidOuncesUs

val Long.fluidOuncesUs: Volume

Creates Volume with the specified value in US fluid ounces.

val Double.grams: Mass

Creates Mass with the specified value in grams.

val Float.grams: Mass

Creates Mass with the specified value in grams.

val Int.grams: Mass

Creates Mass with the specified value in grams.

val Long.grams: Mass

Creates Mass with the specified value in grams.

val Double.inches: Length

Creates Length with the specified value in inches.

val Float.inches: Length

Creates Length with the specified value in inches.

val Int.inches: Length

Creates Length with the specified value in inches.

val Long.inches: Length

Creates Length with the specified value in inches.

val Double.joules: Energy

Creates Energy with the specified value in joules.

val Float.joules: Energy

Creates Energy with the specified value in joules.

val Int.joules: Energy

Creates Energy with the specified value in joules.

val Long.joules: Energy

Creates Energy with the specified value in joules.

Double.kilocalories

val Double.kilocalories: Energy

Creates Energy with the specified value in kilocalories.

Float.kilocalories

val Float.kilocalories: Energy

Creates Energy with the specified value in kilocalories.

val Int.kilocalories: Energy

Creates Energy with the specified value in kilocalories.

val Long.kilocalories: Energy

Creates Energy with the specified value in kilocalories.

Double.kilocaloriesPerDay

val Double.kilocaloriesPerDay: Power

Creates Power with the specified value in kilocalories/day.

Float.kilocaloriesPerDay

val Float.kilocaloriesPerDay: Power

Creates Power with the specified value in kilocalories/day.

Int.kilocaloriesPerDay

val Int.kilocaloriesPerDay: Power

Creates Power with the specified value in kilocalories/day.

Long.kilocaloriesPerDay

val Long.kilocaloriesPerDay: Power

Creates Power with the specified value in kilocalories/day.

val Double.kilograms: Mass

Creates Mass with the specified value in kilograms.

val Float.kilograms: Mass

Creates Mass with the specified value in kilograms.

val Int.kilograms: Mass

Creates Mass with the specified value in kilograms.

val Long.kilograms: Mass

Creates Mass with the specified value in kilograms.

val Double.kilojoules: Energy

Creates Energy with the specified value in kilojoules.

val Float.kilojoules: Energy

Creates Energy with the specified value in kilojoules.

val Int.kilojoules: Energy

Creates Energy with the specified value in kilojoules.

val Long.kilojoules: Energy

Creates Energy with the specified value in kilojoules.

val Double.kilometers: Length

Creates Length with the specified value in kilometers.

val Float.kilometers: Length

Creates Length with the specified value in kilometers.

val Int.kilometers: Length

Creates Length with the specified value in kilometers.

val Long.kilometers: Length

Creates Length with the specified value in kilometers.

Double.kilometersPerHour

val Double.kilometersPerHour: Velocity

Creates Velocity with the specified value in kilometers per hour.

Float.kilometersPerHour

val Float.kilometersPerHour: Velocity

Creates Velocity with the specified value in kilometers per hour.

Int.kilometersPerHour

val Int.kilometersPerHour: Velocity

Creates Velocity with the specified value in kilometers per hour.

Long.kilometersPerHour

val Long.kilometersPerHour: Velocity

Creates Velocity with the specified value in kilometers per hour.

val Double.liters: Volume

Creates Volume with the specified value in liters.

val Float.liters: Volume

Creates Volume with the specified value in liters.

val Int.liters: Volume

Creates Volume with the specified value in liters.

val Long.liters: Volume

Creates Volume with the specified value in liters.

val Double.meters: Length

Creates Length with the specified value in meters.

val Float.meters: Length

Creates Length with the specified value in meters.

val Int.meters: Length

Creates Length with the specified value in meters.

val Long.meters: Length

Creates Length with the specified value in meters.

Double.metersPerSecond

val Double.metersPerSecond: Velocity

Creates Velocity with the specified value in meters per second.

Float.metersPerSecond

val Float.metersPerSecond: Velocity

Creates Velocity with the specified value in meters per second.

Int.metersPerSecond

val Int.metersPerSecond: Velocity

Creates Velocity with the specified value in meters per second.

Long.metersPerSecond

val Long.metersPerSecond: Velocity

Creates Velocity with the specified value in meters per second.

val Double.micrograms: Mass

Creates Mass with the specified value in micrograms.

val Float.micrograms: Mass

Creates Mass with the specified value in micrograms.

val Int.micrograms: Mass

Creates Mass with the specified value in micrograms.

val Long.micrograms: Mass

Creates Mass with the specified value in micrograms.

val Double.miles: Length

Creates Length with the specified value in miles.

val Float.miles: Length

Creates Length with the specified value in miles.

val Int.miles: Length

Creates Length with the specified value in miles.

val Long.miles: Length

Creates Length with the specified value in miles.

Double.milesPerHour

val Double.milesPerHour: Velocity

Creates Velocity with the specified value in miles per hour.

Float.milesPerHour

val Float.milesPerHour: Velocity

Creates Velocity with the specified value in miles per hour.

val Int.milesPerHour: Velocity

Creates Velocity with the specified value in miles per hour.

val Long.milesPerHour: Velocity

Creates Velocity with the specified value in miles per hour.

val Double.milligrams: Mass

Creates Mass with the specified value in milligrams.

val Float.milligrams: Mass

Creates Mass with the specified value in milligrams.

val Int.milligrams: Mass

Creates Mass with the specified value in milligrams.

val Long.milligrams: Mass

Creates Mass with the specified value in milligrams.

Double.milliliters

val Double.milliliters: Volume

Creates Volume with the specified value in milliliters.

val Float.milliliters: Volume

Creates Volume with the specified value in milliliters.

val Int.milliliters: Volume

Creates Volume with the specified value in milliliters.

val Long.milliliters: Volume

Creates Volume with the specified value in milliliters.

Double.millimetersOfMercury

val Double.millimetersOfMercury: Pressure

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

Float.millimetersOfMercury

val Float.millimetersOfMercury: Pressure

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

Int.millimetersOfMercury

val Int.millimetersOfMercury: Pressure

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

Long.millimetersOfMercury

val Long.millimetersOfMercury: Pressure

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

val Double.ounces: Mass

Creates Mass with the specified value in ounces.

val Float.ounces: Mass

Creates Mass with the specified value in ounces.

val Int.ounces: Mass

Creates Mass with the specified value in ounces.

val Long.ounces: Mass

Creates Mass with the specified value in ounces.

val Double.percent: Percentage

Creates Percentage with the specified percentage value, not a fraction.

val Float.percent: Percentage

Creates Percentage with the specified percentage value, not a fraction.

val Int.percent: Percentage

Creates Percentage with the specified percentage value, not a fraction.

val Long.percent: Percentage

Creates Percentage with the specified percentage value, not a fraction.

val Double.pounds: Mass

Creates Mass with the specified value in pounds.

val Float.pounds: Mass

Creates Mass with the specified value in pounds.

val Int.pounds: Mass

Creates Mass with the specified value in pounds.

val Long.pounds: Mass

Creates Mass with the specified value in pounds.

val Double.watts: Power

Creates Power with the specified value in Watts.

val Float.watts: Power

Creates Power with the specified value in Watts.

val Int.watts: Power

Creates Power with the specified value in Watts.

val Long.watts: Power

Creates Power with the specified value in Watts.