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