Added in API level 34
RespiratoryRateRecord.Builder
public
static
final
class
RespiratoryRateRecord.Builder
extends Object
java.lang.Object | |
↳ | android.health.connect.datatypes.RespiratoryRateRecord.Builder |
Builder class for RespiratoryRateRecord
Summary
Public constructors | |
---|---|
Builder(Metadata metadata, Instant time, double rate)
|
Public methods | |
---|---|
RespiratoryRateRecord
|
build()
|
RespiratoryRateRecord.Builder
|
clearZoneOffset()
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 |
Inherited methods | |
---|---|
Public constructors
Builder
Added in API level 34
public Builder (Metadata metadata, Instant time, double rate)
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 and 1000 inclusive |
Public methods
build
Added in API level 34
public RespiratoryRateRecord build ()
Returns | |
---|---|
RespiratoryRateRecord |
Object of RespiratoryRateRecord
This value cannot be null . |
clearZoneOffset
Added in API level 34
public RespiratoryRateRecord.Builder clearZoneOffset ()
Sets the zone offset of this record to system default.
Returns | |
---|---|
RespiratoryRateRecord.Builder |
This value cannot be null . |
setZoneOffset
Added in API level 34
public RespiratoryRateRecord.Builder setZoneOffset (ZoneOffset zoneOffset)
Sets the zone offset of the user when the activity happened
Parameters | |
---|---|
zoneOffset |
ZoneOffset : This value cannot be null . |
Returns | |
---|---|
RespiratoryRateRecord.Builder |
This value cannot be null . |