Added in API level 34
Builder
class Builder
kotlin.Any | |
↳ | android.health.connect.datatypes.RestingHeartRateRecord.Builder |
Builder class for RestingHeartRateRecord
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
RestingHeartRateRecord |
build() |
RestingHeartRateRecord.Builder |
Sets the zone offset of this record to system default. |
RestingHeartRateRecord.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,
beatsPerMinute: Long)
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 . |
beatsPerMinute |
Long: Heart beats per minute. Required field. Validation range: 1-300. Value is between 1 and 300 inclusive |
Public methods
build
Added in API level 34
fun build(): RestingHeartRateRecord
Return | |
---|---|
RestingHeartRateRecord |
Object of RestingHeartRateRecord This value cannot be null . |
clearZoneOffset
Added in API level 34
fun clearZoneOffset(): RestingHeartRateRecord.Builder
Sets the zone offset of this record to system default.
Return | |
---|---|
RestingHeartRateRecord.Builder |
This value cannot be null . |
setZoneOffset
Added in API level 34
fun setZoneOffset(zoneOffset: ZoneOffset): RestingHeartRateRecord.Builder
Sets the zone offset of the user when the activity happened
Parameters | |
---|---|
zoneOffset |
ZoneOffset: This value cannot be null . |
Return | |
---|---|
RestingHeartRateRecord.Builder |
This value cannot be null . |