BloodPressureRecord.Builder
public
static
final
class
BloodPressureRecord.Builder
extends Object
| java.lang.Object | |
| ↳ | android.health.connect.datatypes.BloodPressureRecord.Builder |
Builder class for BloodPressureRecord
Summary
Public constructors | |
|---|---|
Builder(Metadata metadata, Instant time, int measurementLocation, Pressure systolic, Pressure diastolic, int bodyPosition)
|
|
Public methods | |
|---|---|
BloodPressureRecord
|
build()
|
BloodPressureRecord.Builder
|
clearZoneOffset()
Sets the zone offset of this record to system default. |
BloodPressureRecord.Builder
|
setZoneOffset(ZoneOffset zoneOffset)
Sets the zone offset of the user when the activity happened |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder (Metadata metadata, Instant time, int measurementLocation, Pressure systolic, Pressure diastolic, int bodyPosition)
| Parameters | |
|---|---|
metadata |
Metadata: Metadata to be associated with the record. See Metadata.
This value cannot be null. |
time |
Instant: Start time of this activity.
This value cannot be null. |
measurementLocation |
int: The arm and part of the arm where the measurement was taken.
Optional field. Allowed values: BodyTemperatureMeasurementLocation.
Value is one of the following:
|
systolic |
Pressure: Systolic blood pressure measurement, in Pressure unit. Required
field. Valid range: 20-200 mmHg.
This value cannot be null. |
diastolic |
Pressure: Diastolic blood pressure measurement, in Pressure unit. Required
field. Valid range: 10-180 mmHg.
This value cannot be null. |
bodyPosition |
int: The user's body position when the measurement was taken. Optional
field. Allowed values: BodyPosition.
Value is one of the following: |
Public methods
build
public BloodPressureRecord build ()
| Returns | |
|---|---|
BloodPressureRecord |
Object of BloodPressureRecord
This value cannot be null. |
clearZoneOffset
public BloodPressureRecord.Builder clearZoneOffset ()
Sets the zone offset of this record to system default.
| Returns | |
|---|---|
BloodPressureRecord.Builder |
This value cannot be null. |
setZoneOffset
public BloodPressureRecord.Builder setZoneOffset (ZoneOffset zoneOffset)
Sets the zone offset of the user when the activity happened
| Parameters | |
|---|---|
zoneOffset |
ZoneOffset: This value cannot be null. |
| Returns | |
|---|---|
BloodPressureRecord.Builder |
This value cannot be null. |