Added in API level 34
Builder
class Builder
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.RespiratoryRateRecord.Builder |
Builder class for RespiratoryRateRecord
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| RespiratoryRateRecord |
build() |
| RespiratoryRateRecord.Builder |
Sets the zone offset of this record to system default. |
| RespiratoryRateRecord.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,
rate: Double)
| 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. |
rate |
Double: Respiratory rate in breaths per minute. Required field. Valid range: 0-1000. Value is between 0.0f and 1000.0f inclusive |
Public methods
build
Added in API level 34
fun build(): RespiratoryRateRecord
| Return | |
|---|---|
RespiratoryRateRecord |
Object of RespiratoryRateRecord This value cannot be null. |
clearZoneOffset
Added in API level 34
fun clearZoneOffset(): RespiratoryRateRecord.Builder
Sets the zone offset of this record to system default.
| Return | |
|---|---|
RespiratoryRateRecord.Builder |
This value cannot be null. |
setZoneOffset
Added in API level 34
fun setZoneOffset(zoneOffset: ZoneOffset): RespiratoryRateRecord.Builder
Sets the zone offset of the user when the activity happened
| Parameters | |
|---|---|
zoneOffset |
ZoneOffset: This value cannot be null. |
| Return | |
|---|---|
RespiratoryRateRecord.Builder |
This value cannot be null. |