Added in API level 34
Vo2MaxRecord.Builder
public
static
final
class
Vo2MaxRecord.Builder
extends Object
| java.lang.Object | |
| ↳ | android.health.connect.datatypes.Vo2MaxRecord.Builder |
Builder class for Vo2MaxRecord
Summary
Public constructors | |
|---|---|
Builder(Metadata metadata, Instant time, int measurementMethod, double vo2MillilitersPerMinuteKilogram)
|
|
Public methods | |
|---|---|
Vo2MaxRecord
|
build()
|
Vo2MaxRecord.Builder
|
clearZoneOffset()
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 |
Inherited methods | |
|---|---|
Public constructors
Builder
Added in API level 34
public Builder (Metadata metadata, Instant time, int measurementMethod, double vo2MillilitersPerMinuteKilogram)
| 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. |
measurementMethod |
int: VO2 max measurement method. Optional field. Allowed values:
Vo2MaxMeasurementMethod.
Value is Vo2MaxRecord.Vo2MaxMeasurementMethod.MEASUREMENT_METHOD_OTHER, Vo2MaxRecord.Vo2MaxMeasurementMethod.MEASUREMENT_METHOD_METABOLIC_CART, Vo2MaxRecord.Vo2MaxMeasurementMethod.MEASUREMENT_METHOD_HEART_RATE_RATIO, Vo2MaxRecord.Vo2MaxMeasurementMethod.MEASUREMENT_METHOD_COOPER_TEST, Vo2MaxRecord.Vo2MaxMeasurementMethod.MEASUREMENT_METHOD_MULTISTAGE_FITNESS_TEST, or Vo2MaxRecord.Vo2MaxMeasurementMethod.MEASUREMENT_METHOD_ROCKPORT_FITNESS_TEST |
vo2MillilitersPerMinuteKilogram |
double: Maximal aerobic capacity (VO2 max) in milliliters.
Required field. Valid range: 0-100.
Value is between 0.0f and 100.0f inclusive |
Public methods
build
Added in API level 34
public Vo2MaxRecord build ()
| Returns | |
|---|---|
Vo2MaxRecord |
Object of Vo2MaxRecord
This value cannot be null. |
clearZoneOffset
Added in API level 34
public Vo2MaxRecord.Builder clearZoneOffset ()
Sets the zone offset of this record to system default.
| Returns | |
|---|---|
Vo2MaxRecord.Builder |
This value cannot be null. |
setZoneOffset
Added in API level 34
public Vo2MaxRecord.Builder setZoneOffset (ZoneOffset zoneOffset)
Sets the zone offset of the user when the activity happened
| Parameters | |
|---|---|
zoneOffset |
ZoneOffset: This value cannot be null. |
| Returns | |
|---|---|
Vo2MaxRecord.Builder |
This value cannot be null. |