BloodPressureRecord
public final class BloodPressureRecord implements Record
Captures the blood pressure of a user. Each record represents a single instantaneous blood pressure reading.
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if one of the values is outside the valid range. |
Summary
Constants |
|
|---|---|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
Public constructors |
|---|
BloodPressureRecord( |
Public methods |
|
|---|---|
boolean |
|
final int |
The user's body position when the measurement was taken. |
final @NonNull Pressure |
Diastolic blood pressure measurement, in |
final int |
The arm and part of the arm where the measurement was taken. |
@NonNull Metadata |
Set of common metadata associated with the written record. |
final @NonNull Pressure |
Systolic blood pressure measurement, in |
@NonNull Instant |
getTime()Time the record happened. |
ZoneOffset |
User experienced zone offset at |
int |
hashCode() |
@NonNull String |
toString() |
Constants
MEASUREMENT_LOCATION_RIGHT_UPPER_ARM
public static final int MEASUREMENT_LOCATION_RIGHT_UPPER_ARM = 4
Public fields
DIASTOLIC_AVG
public static final @NonNull AggregateMetric<@NonNull Pressure> DIASTOLIC_AVG
Metric identifier to retrieve average diastolic from androidx.health.connect.client.aggregate.AggregationResult.
DIASTOLIC_MAX
public static final @NonNull AggregateMetric<@NonNull Pressure> DIASTOLIC_MAX
Metric identifier to retrieve maximum diastolic from androidx.health.connect.client.aggregate.AggregationResult.
DIASTOLIC_MIN
public static final @NonNull AggregateMetric<@NonNull Pressure> DIASTOLIC_MIN
Metric identifier to retrieve minimum diastolic from androidx.health.connect.client.aggregate.AggregationResult.
SYSTOLIC_AVG
public static final @NonNull AggregateMetric<@NonNull Pressure> SYSTOLIC_AVG
Metric identifier to retrieve average systolic from androidx.health.connect.client.aggregate.AggregationResult.
SYSTOLIC_MAX
public static final @NonNull AggregateMetric<@NonNull Pressure> SYSTOLIC_MAX
Metric identifier to retrieve maximum systolic from androidx.health.connect.client.aggregate.AggregationResult.
SYSTOLIC_MIN
public static final @NonNull AggregateMetric<@NonNull Pressure> SYSTOLIC_MIN
Metric identifier to retrieve minimum systolic from androidx.health.connect.client.aggregate.AggregationResult.
Public constructors
Public methods
getBodyPosition
public final int getBodyPosition()
The user's body position when the measurement was taken. Optional field. Allowed values: BodyPosition.
| See also | |
|---|---|
BloodPressureRecord.BodyPosition |
getDiastolic
public final @NonNull Pressure getDiastolic()
Diastolic blood pressure measurement, in Pressure unit. Required field. Valid range: 10-180mmHg. For SDK extension 17 or higher, Valid range: 10-300mmHg.
getMeasurementLocation
public final int getMeasurementLocation()
The arm and part of the arm where the measurement was taken. Optional field. Allowed values: MeasurementLocation.
getMetadata
public @NonNull Metadata getMetadata()
Set of common metadata associated with the written record.
getSystolic
public final @NonNull Pressure getSystolic()
Systolic blood pressure measurement, in Pressure unit. Required field. Valid range: 20-200mmHg. For SDK extension 17 or higher, Valid range: 20-300mmHg.
getZoneOffset
public ZoneOffset getZoneOffset()
User experienced zone offset at time, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.