Added in API level 34
Builder
class Builder
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.BloodPressureRecord.Builder |
Builder class for BloodPressureRecord
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| BloodPressureRecord |
build() |
| BloodPressureRecord.Builder |
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 |
Public constructors
Builder
Added in API level 34
Builder(
metadata: Metadata,
time: Instant,
measurementLocation: Int,
systolic: Pressure,
diastolic: Pressure,
bodyPosition: Int)
Public methods
build
Added in API level 34
fun build(): BloodPressureRecord
| Return | |
|---|---|
BloodPressureRecord |
Object of BloodPressureRecord This value cannot be null. |
clearZoneOffset
Added in API level 34
fun clearZoneOffset(): BloodPressureRecord.Builder
Sets the zone offset of this record to system default.
| Return | |
|---|---|
BloodPressureRecord.Builder |
This value cannot be null. |
setZoneOffset
Added in API level 34
fun setZoneOffset(zoneOffset: ZoneOffset): BloodPressureRecord.Builder
Sets the zone offset of the user when the activity happened
| Parameters | |
|---|---|
zoneOffset |
ZoneOffset: This value cannot be null. |
| Return | |
|---|---|
BloodPressureRecord.Builder |
This value cannot be null. |