Added in API level 34
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
Added in API level 34
public Builder (Metadata metadata, Instant time, int measurementLocation, Pressure systolic, Pressure diastolic, int bodyPosition)
Public methods
build
Added in API level 34
public BloodPressureRecord build ()
Returns | |
---|---|
BloodPressureRecord |
Object of BloodPressureRecord
This value cannot be null . |
clearZoneOffset
Added in API level 34
public BloodPressureRecord.Builder clearZoneOffset ()
Sets the zone offset of this record to system default.
Returns | |
---|---|
BloodPressureRecord.Builder |
This value cannot be null . |
setZoneOffset
Added in API level 34
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 . |