Added in API level 34
Builder
class Builder
kotlin.Any | |
↳ | android.health.connect.datatypes.BasalMetabolicRateRecord.Builder |
Builder class for BasalMetabolicRateRecord
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
BasalMetabolicRateRecord |
build() |
BasalMetabolicRateRecord.Builder |
Sets the zone offset of this record to system default. |
BasalMetabolicRateRecord.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,
basalMetabolicRate: Power)
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 . |
basalMetabolicRate |
Power: Basal metabolic rate, in Power unit. Required field. Valid range: 0-10000 kcal/day. This value cannot be null . |
Public methods
build
Added in API level 34
fun build(): BasalMetabolicRateRecord
Return | |
---|---|
BasalMetabolicRateRecord |
Object of BasalMetabolicRateRecord This value cannot be null . |
clearZoneOffset
Added in API level 34
fun clearZoneOffset(): BasalMetabolicRateRecord.Builder
Sets the zone offset of this record to system default.
Return | |
---|---|
BasalMetabolicRateRecord.Builder |
This value cannot be null . |
setZoneOffset
Added in API level 34
fun setZoneOffset(zoneOffset: ZoneOffset): BasalMetabolicRateRecord.Builder
Sets the zone offset of the user when the activity happened
Parameters | |
---|---|
zoneOffset |
ZoneOffset: This value cannot be null . |
Return | |
---|---|
BasalMetabolicRateRecord.Builder |
This value cannot be null . |