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.

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

Creates Energy with the specified value in calories.

val Float.caloriesEnergy

Creates Energy with the specified value in calories.

val Int.caloriesEnergy

Creates Energy with the specified value in calories.

val Long.caloriesEnergy

Creates Energy with the specified value in calories.

val Double.celsiusTemperature

Creates Temperature with the specified value in Celsius degrees.

val Float.celsiusTemperature

Creates Temperature with the specified value in Celsius degrees.

val Int.celsiusTemperature

Creates Temperature with the specified value in Celsius degrees.

val Long.celsiusTemperature

Creates Temperature with the specified value in Celsius degrees.

val Double.fahrenheitTemperature

Creates Temperature with the specified value in Fahrenheit degrees.

val Float.fahrenheitTemperature

Creates Temperature with the specified value in Fahrenheit degrees.

val Int.fahrenheitTemperature

Creates Temperature with the specified value in Fahrenheit degrees.

val Long.fahrenheitTemperature

Creates Temperature with the specified value in Fahrenheit degrees.

val Double.feetLength

Creates Length with the specified value in feet.

val Float.feetLength

Creates Length with the specified value in feet.

val Int.feetLength

Creates Length with the specified value in feet.

val Long.feetLength

Creates Length with the specified value in feet.

val Double.fluidOuncesUsVolume

Creates Volume with the specified value in US fluid ounces.

val Float.fluidOuncesUsVolume

Creates Volume with the specified value in US fluid ounces.

val Int.fluidOuncesUsVolume

Creates Volume with the specified value in US fluid ounces.

val Long.fluidOuncesUsVolume

Creates Volume with the specified value in US fluid ounces.

val Double.gramsMass

Creates Mass with the specified value in grams.

val Float.gramsMass

Creates Mass with the specified value in grams.

val Int.gramsMass

Creates Mass with the specified value in grams.

val Long.gramsMass

Creates Mass with the specified value in grams.

val Double.inchesLength

Creates Length with the specified value in inches.

val Float.inchesLength

Creates Length with the specified value in inches.

val Int.inchesLength

Creates Length with the specified value in inches.

val Long.inchesLength

Creates Length with the specified value in inches.

val Double.joulesEnergy

Creates Energy with the specified value in joules.

val Float.joulesEnergy

Creates Energy with the specified value in joules.

val Int.joulesEnergy

Creates Energy with the specified value in joules.

val Long.joulesEnergy

Creates Energy with the specified value in joules.

val Double.kilocaloriesEnergy

Creates Energy with the specified value in kilocalories.

val Float.kilocaloriesEnergy

Creates Energy with the specified value in kilocalories.

val Int.kilocaloriesEnergy

Creates Energy with the specified value in kilocalories.

val Long.kilocaloriesEnergy

Creates Energy with the specified value in kilocalories.

val Double.kilocaloriesPerDayPower

Creates Power with the specified value in kilocalories/day.

val Float.kilocaloriesPerDayPower

Creates Power with the specified value in kilocalories/day.

val Int.kilocaloriesPerDayPower

Creates Power with the specified value in kilocalories/day.

val Long.kilocaloriesPerDayPower

Creates Power with the specified value in kilocalories/day.

val Double.kilogramsMass

Creates Mass with the specified value in kilograms.

val Float.kilogramsMass

Creates Mass with the specified value in kilograms.

val Int.kilogramsMass

Creates Mass with the specified value in kilograms.

val Long.kilogramsMass

Creates Mass with the specified value in kilograms.

val Double.kilojoulesEnergy

Creates Energy with the specified value in kilojoules.

val Float.kilojoulesEnergy

Creates Energy with the specified value in kilojoules.

val Int.kilojoulesEnergy

Creates Energy with the specified value in kilojoules.

val Long.kilojoulesEnergy

Creates Energy with the specified value in kilojoules.

val Double.kilometersLength

Creates Length with the specified value in kilometers.

val Float.kilometersLength

Creates Length with the specified value in kilometers.

val Int.kilometersLength

Creates Length with the specified value in kilometers.

val Long.kilometersLength

Creates Length with the specified value in kilometers.

val Double.kilometersPerHourVelocity

Creates Velocity with the specified value in kilometers per hour.

val Float.kilometersPerHourVelocity

Creates Velocity with the specified value in kilometers per hour.

val Int.kilometersPerHourVelocity

Creates Velocity with the specified value in kilometers per hour.

val Long.kilometersPerHourVelocity

Creates Velocity with the specified value in kilometers per hour.

val Double.litersVolume

Creates Volume with the specified value in liters.

val Float.litersVolume

Creates Volume with the specified value in liters.

val Int.litersVolume

Creates Volume with the specified value in liters.

val Long.litersVolume

Creates Volume with the specified value in liters.

val Double.metersLength

Creates Length with the specified value in meters.

val Float.metersLength

Creates Length with the specified value in meters.

val Int.metersLength

Creates Length with the specified value in meters.

val Long.metersLength

Creates Length with the specified value in meters.

val Double.metersPerSecondVelocity

Creates Velocity with the specified value in meters per second.

val Float.metersPerSecondVelocity

Creates Velocity with the specified value in meters per second.

val Int.metersPerSecondVelocity

Creates Velocity with the specified value in meters per second.

val Long.metersPerSecondVelocity

Creates Velocity with the specified value in meters per second.

val Double.microgramsMass

Creates Mass with the specified value in micrograms.

val Float.microgramsMass

Creates Mass with the specified value in micrograms.

val Int.microgramsMass

Creates Mass with the specified value in micrograms.

val Long.microgramsMass

Creates Mass with the specified value in micrograms.

val Double.milesLength

Creates Length with the specified value in miles.

val Float.milesLength

Creates Length with the specified value in miles.

val Int.milesLength

Creates Length with the specified value in miles.

val Long.milesLength

Creates Length with the specified value in miles.

val Double.milesPerHourVelocity

Creates Velocity with the specified value in miles per hour.

val Float.milesPerHourVelocity

Creates Velocity with the specified value in miles per hour.

val Int.milesPerHourVelocity

Creates Velocity with the specified value in miles per hour.

val Long.milesPerHourVelocity

Creates Velocity with the specified value in miles per hour.

val Double.milligramsMass

Creates Mass with the specified value in milligrams.

val Float.milligramsMass

Creates Mass with the specified value in milligrams.

val Int.milligramsMass

Creates Mass with the specified value in milligrams.

val Long.milligramsMass

Creates Mass with the specified value in milligrams.

val Double.millilitersVolume

Creates Volume with the specified value in milliliters.

val Float.millilitersVolume

Creates Volume with the specified value in milliliters.

val Int.millilitersVolume

Creates Volume with the specified value in milliliters.

val Long.millilitersVolume

Creates Volume with the specified value in milliliters.

millimetersOfMercury

val Double.millimetersOfMercuryPressure

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

millimetersOfMercury

val Float.millimetersOfMercuryPressure

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

millimetersOfMercury

val Int.millimetersOfMercuryPressure

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

millimetersOfMercury

val Long.millimetersOfMercuryPressure

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

val Double.ouncesMass

Creates Mass with the specified value in ounces.

val Float.ouncesMass

Creates Mass with the specified value in ounces.

val Int.ouncesMass

Creates Mass with the specified value in ounces.

val Long.ouncesMass

Creates Mass with the specified value in ounces.

val Double.percentPercentage

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

val Float.percentPercentage

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

val Int.percentPercentage

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

val Long.percentPercentage

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

val Double.poundsMass

Creates Mass with the specified value in pounds.

val Float.poundsMass

Creates Mass with the specified value in pounds.

val Int.poundsMass

Creates Mass with the specified value in pounds.

val Long.poundsMass

Creates Mass with the specified value in pounds.

val Double.wattsPower

Creates Power with the specified value in Watts.

val Float.wattsPower

Creates Power with the specified value in Watts.

val Int.wattsPower

Creates Power with the specified value in Watts.

val Long.wattsPower

Creates Power with the specified value in Watts.